开发者

Re-direct problem with HTACCESS edit

开发者 https://www.devze.com 2023-01-08 05:32 出处:网络
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 t

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

精彩评论

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