title: ASP.NET / IIS7 Url Rewrite maps not working
body: <p>I've followed the instructions <a href="http://learn.iis.net/page.aspx/469/using-rewrite-maps-in-url-rewrite-module/" rel="nofollow">Learn IIS's webpage</a> for adding static redirects with a rewrite map for my asp.net application.</p>
  
  <p>The following is the config:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;rule name="Redirect rule1 for Information" stopProcessing="true"&gt;
      &lt;match url=".*" /&gt;
      &lt;conditions logicalGrouping="MatchAll" trackAllCaptures="false"&gt;
          &lt;add input="{Information:{REQUEST_URI}}" pattern="(.+)" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Rewrite" url="{C:1}" appendQueryString="true" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>And</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;rewriteMaps&gt;
      &lt;rewriteMap name="Information"&gt;
          &lt;add key="/Information/CorporateSales.aspx"
               value="/KB/Information/CorporateSales" /&gt;
          &lt;add key="/Information/ComputerRepair.aspx"
               value="/KB/Information/ComputerRepair" /&gt;
      &lt;/rewriteMap&gt;
  &lt;/rewriteMaps&gt;
  </code></pre>
  
  <p>This was even originally created by the wizard in IIS's manager for using rewrite maps.</p>
  
  <p>So the idea is that <code>/Information/CorporateSales.aspx</code> --> <code>/KB/Information/CorporateSales</code> with a 301 redirect (MOVED PERMANENTLY).</p>
  
  <p>However I'm just getting the original aspx page (Which we're removing later) loading. I've even <strong>deleted the file</strong> incase it was defaulting to an existing resource, and with that i just get a plain 404 without the redirect.</p>
  
  <p>Anyone have an idea?</p>
  
  <p><strong>Let me clarify something:</strong></p>
  
  <p>Rewrite module <em>works</em>, it's installed and running. My standard regex rules work nicely. But my <strong>rewrite map</strong> does not.</p>