zhangjih 发表于 2011 年 1 月 26 日 10:02:05

Discuz!X1.5虚拟主机win2003实现静态化

新建httpd.ini文件!
复制下面内容粘贴进去,

# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4
RewriteRule ^(.*)/article-(+)-(+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5
RewriteRule ^(.*)/forum-(\w+)-(+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
RewriteRule ^(.*)/thread-(+)-(+)-(+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/group-(+)-(+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
RewriteRule ^(.*)/(+)-(.+)\.html(\?(.*))*$ $1/$2\.php\?rewrite=$3&$5

然后将该文件上载到您的论坛安装目录中!

接着进入后台,全局-->优化设置中!勾选你要静态显示的栏目!


Rewrite 兼容性:








页: [1]
查看完整版本: Discuz!X1.5虚拟主机win2003实现静态化