How Can I Fix Redirects to a Nonexistent Subfolder in My Website?

0
9
Asked By CuriousCat22 On

I was updating my website's formatting when I mistakenly added "/oldwebsite" to both the URL and site URL in WordPress, even though there isn't actually an 'oldwebsite' folder. After realizing my mistake, I changed it back, but now when I search for my business, it redirects to that nonexistent subfolder, displaying a "page does not exist" error. Is there a way to disconnect it from webpage.com/oldwebsite and revert to the regular URL?

5 Answers

Answered By WebWizard123 On

Make sure you clear both your site cache and browser cache. After that, head to Settings > Permalinks and click 'Save' again to reset your permalinks. Don't forget to check your .htaccess file and any redirect plugins as well to see if there's still a redirect for /oldwebsite, and remove it if it’s there.

Answered By SearchSurfer88 On

Totally agree with the others! If Google is still showing the old URL, it’s worth going into Google Search Console and requesting the removal of that specific URL. Then submit your correct URL to ensure that Google crawls it properly. It might take a few days to fully clear up, but it's definitely the way to go.

Answered By TechieTim84 On

First, try refreshing your permalinks. Go to Settings > Permalinks in your WordPress dashboard and just click 'Save Changes' without modifying anything. This often helps refresh your permalink settings. Also, it might be a caching issue, so consider checking for any caching plugins that could still be serving the old links to visitors. If that doesn't work, it might just take some time for Google's crawlers to update their cache. To speed things up, you can use Google Search Console to submit your site for re-indexing.

Answered By CodeCrusader99 On

Great tips already mentioned! You should also check if you have any server-level redirects set up. Look into your web server configuration files (like .htaccess for Apache or Nginx config) or any redirect plugins you may be using. Since search engines cache URLs, submitting a fresh sitemap and utilizing the URL removal tool in Google Search Console may help clear the old link faster.

Answered By DevDude77 On

First, double-check that both URLs in Settings > General are correct. After that, clear any caches on your site. It's also a good idea to inspect your .htaccess file or any redirect plugins to make sure that the oldwebsite path hasn’t been saved somewhere. Once you clear everything out, the redirect should stop happening.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.