下载ISAPI_Rewrite组件,点击后面的链接下载:点此下载ISAPI_Rewrite组件; 解压到任意目录,建议非系统目录。笔者设置的是“D: Progr
下载ISAPI_Rewrite组件,点击后面的链接下载:点此下载ISAPI_Rewrite组件; 解压到任意目录,建议非系统目录。笔者设置的是“D:\Program\Rewrite”;

打开“Internet 信息服务(IIS)管理器”,在左侧“网站”上点击右键,选择“属性”;

打开IIS属性对话框后,点击“ISAPI 筛选器”;


点击“添加”,筛选器名称填写“Rewrite”,可执行文件选择刚才解压目录下的Rewrite.dll,如下图所示:

关闭对话框,重启IIS,再打开IIS管理器,查看ISAPI筛选器,可以看到如下图所示

ReWrite筛选器的状态显示一个绿色的向上箭头,安装成功。
以上是安装步骤,如果需要使用,还需要设置Rewrite规则,设置方法如下:
- 打开刚才解压目录,找到httpd.ini文件,用记事本打开它; 在行“# from accessing through HTTP”一下位置设置规则。
本压缩包已经提供了Discuz 6.0的规则,你可以根据需要你的要求来设置。设置规则需要了解正则表达式 ,请查询相关内容。