大家都认为网站伪静态化对于网站优化很重要,以前阿权站长写过一篇关于BBSxp论坛伪静态化的文章:http://www.seozz.net/zzseo/jingtaihua.html 后来就有很多站长问我BBSxp论坛如何伪静态化,虽说BBSxp论坛系统是一个很古老式的论坛系统,但是它也曾一度火过,它系统非常小,所以操作相当简单些,对于小型论坛已经足够。今天阿权站长就把BBSxp论坛伪静态化方法告诉大家,不当之处敬请谅解(可以参考我以前的文章httpd.ini方法实现虚拟空间伪静态化进行操作):
以下是BBSXP论坛伪静态化规则,命名为httpd.ini,传到根目录:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule /index.html /default.asp
RewriteRule /Tags.html /tags.asp
RewriteRule /chuanci/index.html /chuanci/default.asp
RewriteRule /seo(\d+)\.html /ShowPost\.asp\?ThreadID=$1 [N,I]
RewriteRule /sem(\d+).html /ShowForum.asp\?ForumID=$1 [N,I]
RewriteRule /sem(\d+)_(\d+)\.html /ShowForum.asp\?ForumID=$1&PageIndex=$2 [N,I]
RewriteRule /(\d+)\.html /default\.asp\?GroupID=$1 [N,I]
RewriteRule /tags(\d+)\.html /Tags\.asp\?TagID=$1 [N,I]
RewriteRule /seosem(\d+)\.html /Archiver\.asp\?ThreadID=$1 [N,I]
RewriteRule /ueo(\d+)\.html /ShowPost\.asp\?PostID=$1 [N,I]
说明:以上RewriteRule /chuanci/index.html /chuanci/default.asp 是二级目录的BBSXP论坛系统首页伪静态化规则,实验可以成功。
看伪静态化是否成功:在地址栏输入伪静态后的网址如:www.chuanci.net/index.html 可以访问,表示伪静态化初步成功。然后在源码中根据伪静态化规则修改网站整体链接,最后点击各个链接,都是伪静态且无误,说明伪静态化成功。
很多情况伪静态化不能成功,是和虚拟空间有关系,您只需要联系虚拟空间提供商便可,说明您的意图,他们会帮您完成伪静态化。
BBSXP论坛伪静态化成功案例:www.chuanci.net
本文地址:http://www.seozz.net/zzseo/bbsxpwjt.html
本文标题:BBSXP论坛伪静态化规则