今天搜索一个话题,发现自己已经在论坛里面发表过,但是另外一家网站显然抄袭我的竟然排在前面,看了一下,还是自己的页面没有静态化而吃亏。
过去这个问题一直没有搞定,今天突然发现自己在后台rewrite规则设置方面犯了一个小错误。
先把设置好的.htaccess文件内容贴出来:
官方提供的:
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为你的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase / discuz
# Rewrite 系统规则请勿修改
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
自己急于HostMonster修改的:
RewriteEngine on
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://babyheart.com.cn$
RewriteCond %{HTTP_REFERER} !^http://bbs.babyheart.com.cn/.*$
RewriteCond %{HTTP_REFERER} !^http://bbs.babyheart.com.cn$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://bbs.ibabyheart.com$
RewriteCond %{HTTP_REFERER} !^http://bbs.ibabyheart.org/.*$
RewriteCond %{HTTP_REFERER} !^http://bbs.ibabyheart.org$
RewriteCond %{HTTP_REFERER} !^http://data.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://data.ibabyheart.com$
RewriteCond %{HTTP_REFERER} !^http://gfshgf.usa3.22953.com/.*$
RewriteCond %{HTTP_REFERER} !^http://gfshgf.usa3.22953.com$
RewriteCond %{HTTP_REFERER} !^http://home.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://home.ibabyheart.com$
RewriteCond %{HTTP_REFERER} !^http://ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://ibabyheart.com$
RewriteCond %{HTTP_REFERER} !^http://ibabyheart.org/.*$
RewriteCond %{HTTP_REFERER} !^http://ibabyheart.org$
RewriteCond %{HTTP_REFERER} !^http://lumanyi.com/.*$
RewriteCond %{HTTP_REFERER} !^http://lumanyi.com$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://www.babyheart.com.cn$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.com/.*$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.com$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.org/.*$
RewriteCond %{HTTP_REFERER} !^http://www.ibabyheart.org$
RewriteCond %{HTTP_REFERER} !^http://www.lumanyi.com/.*$
RewriteCond %{HTTP_REFERER} !^http://www.lumanyi.com$
RewriteRule .*\.(jpg|jpeg|gif|bmp|flv|rar|png)$ http://data.ibabyheart.com/no.bmp [R,NC]
但关键问题还不在这里,主要是下面的设置:全局-优化设置-搜索引擎优化中,rewrite兼容性 应该选择“否”