具体的设置方法见压缩包内说明文档.

httpd.ini配置方法
(每个大括号代表一个url参数,其中用正则表达式匹配.)

RewriteRule ^(.*)/([a-z0-9\-\_]+)$ $1/Default\.aspx\?id=$2
# http://localhost/Text 就会等同于 http://localhost/Default.aspx?id=Text

# RewriteRule ^(.*)/id_([a-z0-9\-]+)\.html$ $1/Default\.aspx\?id=$2
# http://localhost/id_Text.html 就会等同于 http://localhost/Default.aspx?id=Text

RewriteRule ^(.*)/html/([0-9]+)/([0-9]+)\.html$ $1/Default\.aspx\?id=$2&name=$3
# http://localhost/html/001/007.html 就等同于 http://localhost/Default.aspx?id=001&name=007

posted on 2009-03-24 15:08  雨季  阅读(200)  评论(0编辑  收藏  举报