元の URL のパスにパラメーターが含まれている別の URL に URL を変更するために、URL 書き換え IIS モジュールを使用しようとしています。
Exp : 元の URL : myurl/specialattribute_123456
希望 URL : 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>
しかし、それはうまくいきませんでした...助けはありますか?