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 等信息
结果测试还是不行
是不是哪里还需要完善啊
第一次弄这个,望高人指点一二!
[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]
RewriteRule /company_(\d+)\.html /company.asp\?id=$1 [N,I]
谢谢啊 还是不行额
是不是哪里还需要设置额?
作者: enjoy_gw 发布时间: 2011-06-16
你是xp么,iis里面加载了组件没?
2003注意了
dll 外的文件夹给 network service读取权限 没有就会加载此dll失败
dll外的文件夹给 everyone读取权限 没有就会加载成功,但无效
2003注意了
dll 外的文件夹给 network service读取权限 没有就会加载此dll失败
dll外的文件夹给 everyone读取权限 没有就会加载成功,但无效
作者: XiaoYe_Loison 发布时间: 2011-06-16
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28