Cannot delete 301 redirects

I stupidly made a 301 redirect to websiteA.com on websiteB.com. After removing from the .htaccess file, redirection still works. I tried from outside the local network and it is still being redirected. I cleared my cache and tried a different browser.

Does anyone have any suggestions?

UPDATE:

If I add a 302 redirect to this .htaccess file, the site will appreciate it. When I delete it, the old 301 is still redirecting.

.htaccess file for websiteA.com:

# -- concrete5 urls start -- Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # -- concrete5 urls end -- #RewriteCond %{HTTP_HOST} ^.*$ #RewriteRule ^/?$ "http\:\/\/www\.websiteB\.co\.uk\/" [R=301,L] 
+12
redirect .htaccess
source share
6 answers

The browser caches 301 Moved Constantly until it is said otherwise. This is the default behavior: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2 .

To fix this in IE9:

  • Open IE9 and press Ctrl + Shift + P for personal viewing.
  • Go to the problem url
  • Then return to your normal views and everything should be fine.
+13
source share

In Chrome, try visiting a website with the Developer Console open (F12)

Make sure that the "Disable cache" checkbox is selected on the "Network" tab

bypass 301 redirect

This will bypass the browser side redirect cache 301.

+6
source share

The persistent redirect cache is probably in the browser
and in most browsers it’s hard to remove it.
But first try using a different browser to make sure that it is.

If the problem is in the browser:
This happened to me before, and clearing the browser data for this website was not enough.
I also realized that there is a trick for every browser.
In Safari (for Mac), I needed to select "Reset Safari ..." (there is no panic, and none of these bookmarks, none of them are deleted). I can’t remember how I did it for Chrome, but was less traumatic.

Lesson
When playing back with forwarding, first use [302].
After everything has been tested normally, change the code to [301]

+5
source share

Just delete the redirect line.

As well as anyone with Google Chrome, follow these steps:

  1. Press CTRL + SHIFT + SUPR on your keyboard.
  2. Check only β†’ "Files and images stored in the cache"
  3. Select "Items Cached With: Past Week"

This will clear your entire cache and everything will be fine.

+4
source share

I know this is an old post, but I spent some time on the Internet and on my server to find the answer.

If you created a .htaccess file with a permanent redirect, the server will copy this redirect to the following file: "/var/.htaccess".

You must edit this file to remove the redirect before clearing the browser cache.

He worked on my Debian Jessie.

0
source share

Try restarting Apache

(on Ubuntu servers: service apache restart or /etc/init.d/apache2 restart )

-one
source share

All Articles