我尝试使用URL重写IIS模块以将URL修改为具有原始URL路径中包含的参数的另一个URL。使用URL重写将参数添加到URL
经验: 原始地址:myurl/specialattribute_123456
通缉网址:myurl specialattribute = 123456
我已经使用URL重写模块,并在web.config此标记生成:
<rewrite>
<rules>
<rule name="RedirectRule1" stopProcessing="true">
<match url=".*/specialattribute_(.*)/" />
<action type="Redirect" url="myurl?specialattribute={R:1}" />
</rule>
</rules>
<outboundRules>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
但它没有工作......任何帮助?
谢谢回答我,有地方“*”和“/”不能是连续的......还停留 – user2087284 2013-03-15 15:09:12