IIS伪静态URL Rewrite设置方法
首先,下载文件 IIS下的Rewrite组件,将其解压到本地硬盘(压缩包里有两个文件,分别是IisUrlRewriter.dll和IisUrlRewriter.ini),然后打开IIS管理器:http://sookk8.blog.运维网.com/attachment/200904/200904201240225790906.gif 选择“ISAPI筛选器”,然后选择“添加”:http://sookk8.blog.运维网.com/attachment/200904/200904201240225804843.gif
在“添加/编辑筛选器属性”对话框中,点击“浏览”:
http://sookk8.blog.运维网.com/attachment/200904/200904201240225826046.gif
在这里,选择刚才解压出来的IisUrlRewriter.dll
http://sookk8.blog.运维网.com/attachment/200904/200904201240225840718.gif
http://sookk8.blog.运维网.com/attachment/200904/200904201240225850671.gif
点击“确定”结束设置:
http://sookk8.blog.运维网.com/attachment/200904/200904201240225862296.gif
如果设置没有生效,你需要重启IIS:
http://sookk8.blog.运维网.com/attachment/200904/200904201240225879484.gif
如果需要在IIS里开启ASP帖子URL到PHP帖子的映射,你需要修改解压出来的IisUrlRewriter.ini文件,
找到#RewriteRule ^(.*?(?:index|dispbbs))\.asp(.*)$ $1.php$2&__is_iis_rewrite=1将#去掉即可!
页:
[1]