我需要重定向包含特殊字符的网址,而不是使用-
符号。
我使用了以下规则,
<rules>
<rule name="Productredirect" stopProcessing="true">
<match url="^products/(\w+[^/]*)[/]([0-9]*).aspx$" />
<action type="Redirect" url="{R:1}-{R:2}" appendQueryString="false" />
</rule>
</rules>
我需要替换URL:localhost / newui / products / Synco-Signature-Carrom-Board-%28-4-x-2%29 - with-Coin,-Striker-andz-VCD-Set / 5647。 ASPX 到
网址:localhost / newui / Synco-Signature-Carrom-Board-4-x-2-with-Coin-Striker-andz-VCD-Set-5647