编写httpd.ini规则让动态写规则成伪静态

来源:百度知道 编辑:UC知道 时间:2024/05/11 19:06:00
我想编写httpd.ini规则让动态写规则成伪静态的,如下面的
分类http://www.xxx.cn/class.asp?ID=1 http://www.xxx.cn/class1.htm
文章http://www.xxx.cn/list.asp?ID=1 http://www.xxx.cn/Article/1.htm

请问应该怎么写,是不是一定要由系统生成的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 /index\.html /index.asp 这个是单个页面
RewriteRule /show-([0-9]+)\.html /show.asp\?ID=$1 这个是内容页
RewriteRule /bag-(\d+)\.html /bag.asp\?page=$1 这个是翻页

前面是生成伪静态的html,后面是对应的动态页面,应该够详细了,我现在就在用这个。