+ -
当前位置:首页 → 问答吧 → ASP伪静态重写规则 怎么整

ASP伪静态重写规则 怎么整

时间:2011-06-16

来源:互联网

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 /article_view_([0-9,a-z]*).html /article_view.asp?id={GetProperty(Content)}

RewriteRule /company_([0-9,a-z]*).html /company.asp?id={GetProperty(Content)}


我的源文件是这个company.asp?id=7样子的

我想实现的是company_7.html的样子

我设置了IIS 等信息
结果测试还是不行

是不是哪里还需要完善啊

第一次弄这个,望高人指点一二!

作者: enjoy_gw   发布时间: 2011-06-16

RewriteRule /company_(\d+)\.html /company.asp\?id=$1 [N,I]

作者: XiaoYe_Loison   发布时间: 2011-06-16

引用 1 楼 xiaoye_loison 的回复:
RewriteRule /company_(\d+)\.html /company.asp\?id=$1 [N,I]


谢谢啊 还是不行额 
是不是哪里还需要设置额?

作者: enjoy_gw   发布时间: 2011-06-16

你是xp么,iis里面加载了组件没?
2003注意了
dll 外的文件夹给 network service读取权限 没有就会加载此dll失败
dll外的文件夹给 everyone读取权限 没有就会加载成功,但无效

作者: XiaoYe_Loison   发布时间: 2011-06-16