Chrome keeps redirecting to old port

I was using XAMPP on port 100 for local development. I changed port back to 80 but Chrome won't let me use new urls.

Previously: localhost:100/mywebsite

Now when I open localhost/mywebsite it keeps redirecting me back to 100 port url which is not present. I have tried to clear browsing cache/history but it didn't work.

3

1 Answer

The answer is posted here: How can I make Chrome stop caching redirects?

I had the same issue while I was developing a new website locally by using Docker. I had to test some redirections on a previous project on a different port and then Chrome kept redirecting new project accessible by localhost to the previously used port. In the meantime, I was able to normally access localhost on the correct port by using Chrome in the incognito mode.

That did the magic:

Chrome Menu Chrome Menu > Settings > Show advanced settings... > Privacy > Click Clear browsing data...

I have cleared only cached images and files.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like