title: Stop ASP.NET from handling 404 errors for files with extensions (not IIS)
body: <p>I'm using IIS7 and ASP.NET. Basically building a simple CMS and need to handle .htm and .html file extensions (served by dynamic asp.net pages).</p>
  
  <p>I have it setup so IIS7 passes the page to asp.net (not the static handler); however, ASP.NET knows the file doesn't exist and redirects to its 404 (404.aspx?aspxerrorpath=xx) before I can do what I need to with it (parse teh url and display the correct page). </p>
  
  <p>I'm using IIS7 url rewrite module to do the rewtitting.</p>