首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > IIS >

ISAPI_Rewrite不生效 httpd.parse.errors却没有异常信息

2012-06-07 
ISAPI_Rewrite不生效 httpd.parse.errors却没有错误信息asp的代码,想在IIS中通过ISAPI_Rewrite设置伪静态。

ISAPI_Rewrite不生效 httpd.parse.errors却没有错误信息
asp的代码,想在IIS中通过ISAPI_Rewrite设置伪静态。
httpd.parse.errors有时也有错误信息,但是httpd.ini修改后,
httpd.parse.errors却没有错误信息了,但是奇怪的是伪静态还是没生效,
我已经按照http://rtmd.net/post/isapi-rewrite-not-take-effect.aspx里说的设置好了,
但是还是不行,望高人指点!
httpd.ini代码如下:

[ISAPI_Rewrite]

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]

RewriteEngine on
# RewriteBase /
RewriteRule ^/about_.+_(\d+)\.html/about.asp\?MID=$1 [N,I]
RewriteRule ^/news_.+_(\d+)\.html/news.asp\?MID=$1 [N,I]
RewriteRule ^/honor_.+_(\d+)\.html/honor.asp\?MID=$1 [N,I]
RewriteRule ^/project\.(\d+)\.html/project.asp\?MID=$1 [N,I]
RewriteRule ^/project\.(\d+)_(\d+)\.html/project.asp\?MID=$1&NID=$2 [N,I]
RewriteRule ^/Products_.+_(\d+)\.html/Products.asp\?MID=$1 [N,I]
RewriteRule ^/service_.+_(\d+)\.html/service.asp\?MID=$1 [N,I]
RewriteRule ^/hr_.+_(\d+)\.html /hr.asp\?MID=$1 [N,I]
RewriteRule ^/contact_.+_(\d+)\.html/contact.asp\?MID=$1 [N,I]

# RewriteLogLevel 9
# LogLevel debug

[解决办法]
写个最简单的 看url重写成功没
RewriteRule ^news/(\d+).html$ news.asp?id=$1

http://../news/123.html

-----

http://../news.asp?id=123
[解决办法]
那重新注册下dll试试

热点排行