ASP伪静态设置的问题

来源:百度知道 编辑:UC知道 时间:2024/06/20 14:33:46
channel.asp?ChannelID=1 实现成 channel/1.html
怎么写?要详细的说明!小弟菜鸟```50分
httpd.ini 的全部内容

RewriteRule /channel/(\d+)\.htm /channel\.asp\?ChannelID=$1

试试

你需要安装插件,asp url rewrite之类的,否则没法实现。
====================================================
[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 /(所在目录,以根目录起)/channel/(\d+)\.html /(所在目录,以根目录起)/channel.asp\?ChannelID=$1