DZ伪静态设置

1、先在服务器上安装这个插件:
http://www.isapirewrite.com/download/isapi_rwl_x86_0059.msi
[好像有比这新的在官网 http://www.helicontech.com/download.htm]
我下了,ISAPI_Rewrite 3.1 for 32 bit platform
http://www.helicontech.com/download/isapi_rewrite/ISAPI_Rewrite3_0043_manual.exe

2、然后给IIS添加ISAPI筛选器 (这步应该是安装后自动生成,不需要操作,只需要检查一下是否存在就行)

3、最后修改httpd.ini(在ISAPI_Rewrite安装目录下)
添加以下代码:
程序代码

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
#DZ的静态规则(这句话不要,只是说明)
RewriteRule ^(.*)/archiver/([a-z0-9/-]+/.html)$ $1/archiver/index/.php/?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)/.html$ $1/forumdisplay/.php/?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)/.html$ $1/viewthread/.php/?tid=$2&extra=page/%3D$4&page=$3
RewriteRule ^(.*)/profile-(username|uid)-(.+?)/.html$ $1/viewpro/.php/?$2=$3
RewriteRule ^(.*)/space-(username|uid)-(.+)/.html$ $1/space/.php/?$2=$3
4、网站后台设置启用静态
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值