【发布时间】:2015-09-18 19:48:44
【问题描述】:
我在 web.config 中有以下 URL 重写设置,可以按我的意愿工作。
<rule name="Product Rewrite" stopProcessing="true">
<match url="^products/([^$]+)/([^$]+)" />
<action type="Rewrite" url="products?durl={R:1}&purl={R:2}" />
</rule>
现在我需要排除任何包含或以 /action/edit 结尾的网址,即 products/action/edit
我知道我需要一个条件块,但我不确定要写什么。
任何帮助将不胜感激。
【问题讨论】:
标签: asp.net url-rewriting webforms