ISapi rewrite高手请进
把这个地址
/News/index.aspx?dir=Company
转变成
/News/Company/index.html
规则这样写错误在何处
RewriteRule /News/([0-9,a-z]*)/index.html /news/index.asp\?dir=$1
把这个地址
/News/viewNews.aspx?dir=Company&id=411
转变成
/News/Company/411.html
规则这样写错误在何处
RewriteRule /News/([0-9,a-z]*)/([0-9,a-z]*).html /news/ViewNew.aspx\?dir=$1&id=$2
------解决方案--------------------頂一個.
------解决方案--------------------
点前没有转义符 没有包括大写字母或者进行不区分大小写标示[I]
RewriteRule ^/News/([0-9a-zA-Z]+)/index\.html$ /news/index\.asp\?dir=$1 [I,L]
------解决方案--------------------
RewriteRule ^/News/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)\.html$ /news/ViewNew\.aspx\?dir=$1&id=$2 [I,L]