iis系统下实现伪静态方法-PW Forums[论坛系统]
第二步、将 [静态目录] 设置为"-htm-",将[静态目录扩展名]设置为:".html"
第三步、安装ISAPI_Rewrite组件,然后修改ISAPI_Rewrite安装目录下的 httpd.ini (httpd.ini 默认为只读文件,需修改只读属性后再改)内容如
[ISAPI_Rewrite]
# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|.\.\..).* . [F,I,O]
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2
ISAPI_Rewrite组件下载地址:http://www.isapirewrite.com/download/isapi_rwl_x86_0059.msi
效果
修改前:http://51she.com.cn/bbs/thread.php?fid=6
修改后:http://51she.com.cn/bbs/thread-htm-fid-6.html
此方法根据此帖得来,在iis6下面测试通过:
http://www.phpwind.net/read-htm-tid-594059-keyword-%BE%B2%CC%AC.html