I was working on my wordpress website and I accidentally changed the internal URL of the site and accessed it once. Since then chrome automatically redirects to that URL even though I have reverted everything. Everything works fine in every other browser (even chrome incognito) but regular chrome doesn't want to cooperate.

Problem:

  1. I type in mydomain.com
  2. Google redirects me automatically to mydomains.com
  3. I go to mydomain.com/uri. Works fine.
  4. I click on home from mydomain.com/uri which points to mydomain.com and chrome redirects to mydomains.com

I have flushed my DNS and sockets pools in chrome, I have cleared the DNS on windows as well. Not quite sure what else I can do?


Solution 1:

Browsers these days often times cache redirects. You need to clear your file cache from before your mistaken change. From Stackoverflow

To force clear htaccess/redirect caches in Google Chrome:

  1. Go to Settings > Advanced > Privacy > Clear Browsing Data
  2. Select "Cached Images and Files"
  3. Click Clear Browsing Data