title: How to redirect non-existent .html files to mvc3 routes?
body: <p>This is probably a duplicate, but my Google-foo is off or something, because I cannot find the answer to this simple question.</p>
  
  <p>I have moved an old site to MVC3 on IIS7.5 and I need to redirect some old .html extension urls to new MVC Controller Actions.</p>
  
  <p>I added URL mappings.</p>
  
  <pre><code>&lt;urlMappings&gt;
      &lt;!-- Doesn't work --&gt;
      &lt;add url="~/OldUrl.html" mappedUrl="~/NewController"/&gt; 
      &lt;!-- Works but is rewrite instead of redirect --&gt;
      &lt;add url="~/OldUrl.aspx" mappedUrl="~/NewController"/&gt; 
  &lt;/urlMappings&gt;
  </code></pre>
  
  <p>The above is not working for 2 reasons.  First, the .html extension doesn't get re-mapped and second, the .aspx extension gets re-mapped rather than rewritten.</p>
  
  <p>I tried to add the StaticFileHandler because I thought maybe the .HTML extension was being ignored by .NET but in fact that handler was already there.</p>
  
  <p>I don't have access to IIS Management Tools because it is in shared hosting, but I should be able to just add something to the web.config to get these to redirect.</p>