Apache 配置完301重定向后有些页面无法正常访问;
1、在地址栏输入“http://520pet.net/news/”;在火狐中提示“此页面重定向不正确 Firefox 检测到该服务器正在将此地址的请求循环重定向。”在IE中只显示500错误,没任何其它提示;2、在地址栏输入“http://520pet.net/article-541-1.html” 哪就跳转到以前的页面(没静态化)去了,请大家看下是怎么回事?
以下是.htaccess的配置文件# 将 RewriteEngine 模式打开
RewriteEngine On# Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^forum-([0-9]+)\.html$ forum.php?gid=$1RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$#RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2RewriteCond %{HTTP_HOST} ^520pet.net [NC]
RewriteRule ^(.*)$ http://www.520pet.net/$1 [L,R=301]