求正规写法
原来是httpd.ini现在要改为web.config
RewriteRule \/ /index.asp [N,I]
RewriteRule \/([\w]+).html /$1.asp [N,I]
RewriteRule \/([\w\%]+)-show-(\d+).html /$1.asp\?id=$2 [N,I]
RewriteRule \/([\w\%]+)-list-(\d+).html /$1.asp\?indid=$2 [N,I]
RewriteRule \/([\w\%]+)-([\w\%]+).html /$1.asp\?action=$2 [N,I]
RewriteRule \/([\w\%]+)-([\w\%]+)-(\d+).html /$1.asp\?action=$2&id=$3 [N,I]
RewriteRule \/([\w\%]+)-(\d+)-([\w\%]+)-([\w\%]+)-(\d+).html /$1.asp\?indid=$2&keywords=$3&action=$4&page=$5 [N,I]
RewriteRule \/([\w\-\%]+\.html) /RewriteRule\.asp [N,I]
RewriteRule \/([\w\-\%\/]+) /RewriteRule\.asp [N,I]
RewriteRule /(.+)\/(.+)\.html /RewriteRule\.asp [N,I]
以上是原来的
<system.webServer>
<rewrite>
<rules>
<rule name="q1">
<match url="\/$" />
<action type="Rewrite" url="index.asp" />
</rule>
<rule name="q2">
<match url="^([A-Za-z]+)\.html$" />
<action type="Rewrite" url="{R:1}.asp" />
</rule>
<rule name="q3">
<match url="^([A-Za-z0-9]+)-show-(\d+)\.html$" />
<action type="Rewrite" url="{R:1}.asp?id={R:2}" />
</rule>
<rule name="q4">
<match url="^([A-Za-z0-9]+)-list-(\d+)\.html$" />
<action type="Rewrite" url="{R:1}.asp?indid={R:2}" />
</rule>
<rule name="q5">
<match url="^([A-Za-z0-9]+)-([A-Za-z0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}.asp?action={R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
上面我写了前5条记录,可以用。但后面的我再写,就没用了。请大侠帮我搞定下面五条应该怎么转换写法。
--------------------编程问答-------------------- 是不是之间有映射,只规定你写5条?
补充:.NET技术 , ASP.NET