下载ISAPI_Rewrite.dll文件,解压
在右击我的电脑,管理,网站管理,默认网站,右击属性,ISAPI筛选器,添加(找到刚才的ISAPI_Rewrite.dll文件),添加即可。
要运行伪静态需要在ISAPI_Rewrite.dll文件安装目录中写好 httpd.ini配置,放做.asp文件内容即可
httpd.ini配置:
[ISAPI_Rewrite]
# Defend your computer from some worm attacks
RewriteRule /ting-([0-9,a-z]*).html /ting.asp\?info=$1
RewriteRule /ting.html /ting.asp\?$1
默认目录:C:\Program Files\Helicon
本文介绍如何在IIS服务器上安装并配置ISAPI_Rewrite.dll来实现URL重写,达到伪静态效果。首先需要正确安装IIS并添加ISAPI筛选器,接着在指定目录设置httpd.ini配置文件,包含具体的重写规则。
3152

被折叠的 条评论
为什么被折叠?



