title: iis7 redirect from exact url to new site
body: <p>I want to re-direct from an exact URL request to a new site within that domain.</p>
  
  <p>I need to re-direct requests from </p>
  
  <pre><code> www.example.com/site111/default.aspx?configX.xml 
  </code></pre>
  
  <p>(this site uses a different config file to load content)</p>
  
  <p>to </p>
  
  <pre><code> www.example.com/site222/default.aspx
  </code></pre>
  
  <p>Issue is that I need to leave access www.example.com.au/site111/default.aspx
  so I cannot just to a http re-direct as there is no file called default.aspx?configX.xml </p>
  
  <p>I think I need to use a URL rewrite re-direct 
  Can someone help me with the syntax for the web config I cannot get it to work </p>
  
  <hr>
  
  <p>0 module installed and have used the above syntax and it still doesn't work,</p>
  
  <p>If I use the test feature on the module it says that the string matches,
  very confused,
  the actual webconfig section is here </p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Redirect2" stopProcessing="true"&gt;
         &lt;match url="\/nrmmaps\/default.aspx\?config=nrmproject.xml$" /&gt;
         &lt;action type="Redirect" url="/nrmproject/default.aspx" redirectType="Permanent"/&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
   &lt;/rewrite&gt;  
  </code></pre>
  
  <p>and the old link is </p>
  
  <p><a href="http://se.nrmspace.com.au/nrmmaps/default.aspx?config=nrmproject.xml" rel="nofollow">http://se.nrmspace.com.au/nrmmaps/default.aspx?config=nrmproject.xml</a></p>
  
  <p>and I want it to re-direct to </p>
  
  <p><a href="http://se.nrmspace.com.au/nrmproject/default.aspx" rel="nofollow">http://se.nrmspace.com.au/nrmproject/default.aspx</a></p>
  
  <p>Do you have any idea why this is not working?</p>