无法删除301重定向 [英] Cannot remove 301 redirect
问题描述
我愚蠢做了301重定向websiteA.com到websiteB.com。从.htaccess文件删除后重定向仍然在运作。我试图从本地网络之外,它仍然重定向。我已经清除我的缓存,并尝试了不同的浏览器。
没有任何人有什么建议?
更新:
如果我添加一个302重定向到这个.htaccess文件的网站的荣誉吧。当我删除它,旧的301重定向仍然发生。
.htaccess文件的websiteA.com:
# - concrete5网址开始 -
选项-Indexes
< IfModule mod_rewrite.c>
RewriteEngine叙述上
的RewriteBase /
的RewriteCond%{} REQUEST_FILENAME!-f
的RewriteCond%{} REQUEST_FILENAME!-d
重写规则^(。*)$的index.php / $ 1 [L]
< / IfModule>
# - concrete5网址结束 -
#RewriteCond%{HTTP_HOST} ^ * $
#RewriteRule ^ / $HTTP \:\ / \ / WWW \ .websiteB \ .CO \ .UK \ /?[R = 301,L]
浏览器缓存301感动的永久,直至另行告知。这是默认的行为:<一href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2.
要修复它在IE9的:
- 开启IE9和preSS Ctrl + Shift + P的私人浏览
- 导航到这个问题的网址
- 然后回到正常浏览和都应该再被罚款
I stupidly did a 301 redirect on websiteA.com to websiteB.com. After removing it from the .htaccess file the redirect is still in operation. I tried from outside the local network and it is still redirecting. I have cleared my cache and tried a different browser.
Does anybody have any suggestions?
UPDATE:
If I add a 302 redirect to this .htaccess file the site honours it. When I remove it, the old 301 redirect still happens.
.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]
The browser caches the 301 Moved Permanently, until told otherwise. It is default behavior: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2.
To fix it in IE9:
- Open IE9 and press Ctrl+Shift+P for private browsing
- Navigate to the problem URL
- Then go back to normal browsing and all should be fine again
这篇关于无法删除301重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!