开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜