title: Web config redirect rule to the same action with another query string parameters
body: <p>Well, in my C# ASP .Net MVC application I have an URL:</p>
  
  <pre><code>controller/action?parameter=value
  </code></pre>
  
  <p>I need to redirect this URL in <code>web.config</code> using rewrite rules to:</p>
  
  <pre><code>controller/action?parameter=anotherValue
  </code></pre>
  
  <p>I've already configured the necessary section like below:</p>
  
  <pre><code>&lt;rule name="Redirect" patternSyntax="Wildcard" stopProcessing="true"&gt;
      &lt;match url="controller/action?parameter=value" /&gt;
      &lt;action type="Redirect" url="controller/action?parameter=anotherValue" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>But this rule just doesn't work. Also I've tried:</p>
  
  <pre><code>&lt;rule name="Redirect" patternSyntax="Wildcard" stopProcessing="true"&gt;
      &lt;match url="controller/action$" /&gt;
      &lt;conditions&gt;  
          &lt;add input="{QUERY_STRING}" pattern="parameter=value" /&gt;  
      &lt;/conditions&gt; 
      &lt;action type="Redirect" url="controller/action?parameter=anotherValue" redirectType="Permanent" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>but this rule redirects me to: <code>controller/action?parameter=value&amp;parameter=anotherValue</code></p>
  
  <p><strong>How can I correctly perform this redirection?</strong> </p>