私の C# ASP .Net MVC アプリケーションには、次の URL があります。
controller/action?parameter=value
web.config
書き換えルールを使用して、この URL を次のようにリダイレクトする必要があります。
controller/action?parameter=anotherValue
以下のように、必要なセクションを既に構成しています。
<rule name="Redirect" patternSyntax="Wildcard" stopProcessing="true">
<match url="controller/action?parameter=value" />
<action type="Redirect" url="controller/action?parameter=anotherValue" />
</rule>
しかし、このルールは機能しません。また、私は試しました:
<rule name="Redirect" patternSyntax="Wildcard" stopProcessing="true">
<match url="controller/action$" />
<conditions>
<add input="{QUERY_STRING}" pattern="parameter=value" />
</conditions>
<action type="Redirect" url="controller/action?parameter=anotherValue" redirectType="Permanent" />
しかし、このルールは私を次のようにリダイレクトします:controller/action?parameter=value¶meter=anotherValue
このリダイレクトを正しく実行するにはどうすればよいですか?