开发者

webpage redirects in IE, Chrome... not Firefox?

开发者 https://www.devze.com 2023-02-19 02:38 出处:网络
With firebug, grab the HTTP headers.. firefox gives 200 OK status. Firebug in Chrome, tells me it is a 301 redir开发者_如何学Pythonect.

With firebug, grab the HTTP headers.. firefox gives 200 OK status.

Firebug in Chrome, tells me it is a 301 redir开发者_如何学Pythonect.

The problem is that the page is not supposed to redirect. The htaccess only forces WWW..

Help!


That kind of .htaccess rule works by redirecting the request! The R=301 at the end means "redirect, sending http status 301"

btw the rule you have will redirect www.example.com to example.com. Perhaps you want the opposite:

RewriteCond %{HTTP_HOST} ^website.com [NC] 
RewriteRule ^(.*)$ www.website.com/$1 [L,R=301]
0

精彩评论

暂无评论...
验证码 换一张
取 消