我装ISAPI_Rewrite组件
装在 D:\伪静态组建
然后我把其中的httpd.ini和ISAPI_Rewrite.dll 复制到我的一个网站目录ISAPI_Rewrite下
并把httpd.ini的只读去掉了
并写了
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule /news_([0-9,a-z]*).html /news.asp?id=$1
RewriteRule /news_display_([0-9,a-z]*).html /news_display.asp?id=$1
调试结果报错说:找不到网页
IIS的那组件已经加载了
我的IIS是本地的 所有默认网站下面放了好多网站源文件
我现在头都晕了 到底是我设置错了 还是那正则写错了啊
望高人指点 谢谢
装在 D:\伪静态组建
然后我把其中的httpd.ini和ISAPI_Rewrite.dll 复制到我的一个网站目录ISAPI_Rewrite下
并把httpd.ini的只读去掉了
并写了
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule /news_([0-9,a-z]*).html /news.asp?id=$1
RewriteRule /news_display_([0-9,a-z]*).html /news_display.asp?id=$1
调试结果报错说:找不到网页
IIS的那组件已经加载了
我的IIS是本地的 所有默认网站下面放了好多网站源文件
我现在头都晕了 到底是我设置错了 还是那正则写错了啊
望高人指点 谢谢