开发者

Re-direct problem with HTACCESS edit

RewriteEngine On RewriteCond %{HTTP_HOST} ^tsgcs.ca$ RewriteRule (.*) http://www.tsgcs.ca/$1 [R=301,L]

This is giving me errors 'Firefox has detected that the server is redirecting the request for this address in a way tha开发者_如何转开发t will never complete.'

Any ideas why?


You're trying to redirect the non-www version of a URL to the www version. It's almost correct, but the matching in the RewriteRule isn't quite right. Take a look at the examples here:

http://www.webweaver.nu/html-tips/web-redirection.shtml

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜