I
I
iolon2015-10-08 17:14:16
PHP
iolon, 2015-10-08 17:14:16

How to remotely reset the browser cache when canceling a 301 redirect?

Situation:
there was a /onas/ folder on the site. In /onas/index.php it was written:

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: /onas/contacts/");
exit();
?>

Time passed, so we decided to rename the /onas/ folder to /about/. But when you try to go to /about/, you still redirect to /onas/contacts/. And no manipulations with the browser (including Ctrl + F5) help to reset the 301 redirect cache. Only a complete reset of the entire browser cache through the settings.
Moreover, they write that the cache of 301 redirects in the browser does not expire. How to reset a redirect to a url that no longer exists?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question