IIS的URL美化组件Rewrite.dll安装及使用说明

操作系统 windows server 2003
应用软件 IIS 6

将rewrite.rar解压到C盘根目录下(任意目录) 附件中给出
查看目录权限是否有everyone

[img]http://dl.iteye.com/upload/attachment/159476/69c60a7a-7626-3c27-a11c-81084d6da203.jpg[/img]

没有择添加该用户权限
打开IIS管理界面进行安装

[img]http://dl.iteye.com/upload/attachment/159478/8887712f-9836-3473-a9ee-9b35a7cdfd6c.jpg[/img]


我这里是那discuz7.1 做得实现
把相关httpd.ini

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32

#discuz
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
RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3

#uchome

RewriteRule ^(.*)/(space|network)-(.+)\.html$ $1/$2\.php\?rewrite=$3
RewriteRule ^(.*)/(space|network)\.html$ $1/$2\.php
RewriteRule ^(.*)/([0-9]+)$ $1/space\.php\?uid=$2

放置在论坛的根目录下。
后台设置一下。
重启iis。
测试了一下 ok了。
http://www.0431.la/thread-11-1-1.html

[img]http://dl.iteye.com/upload/attachment/159482/3da6c78b-45e3-3a57-b395-c7670b72d83c.jpg[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值