【发布时间】:2014-12-22 04:51:05
【问题描述】:
我的 .htaccess 文件中有以下代码
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.8mags\.com [NC]
RewriteRule ^(.*) http://8mags.com/$1 [L,R=301]
在firefox中显示以下错误
The page isn't redirecting properly
这个重定向代码写在文件的顶部。重定向代码下面是chaching和gzip压缩的代码,最后是404重定向代码
ErrorDocument 404 http://8mags.com/404page.html
这是怎么回事?
【问题讨论】:
-
您的 htaccess 中有更多规则吗?如果是,请在此处发布。
标签: php apache .htaccess redirect