title: URLRewriter for IIS 7 returns 404 Server Error
body: <p>I've implemented "<strong>Approach 3: Using an HttpModule to Perform Extension-Less URL Rewriting with IIS7</strong>" from here:
  - <a href="http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx" rel="nofollow">http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx</a></p>
  
  <p>That is based on <strong>URLRewriter</strong> module:
  - <a href="http://urlrewriter.net/" rel="nofollow">http://urlrewriter.net/</a></p>
  
  <p>It seems to work on my local environment but on production server (running IIS 7) it shows "<strong>404 - File or directory not found</strong>" page.</p>
  
  <p>I've searched on Google and could not seem to find the solution.</p>
  
  <p>In the end, we went back to IIS 6 and followed the instructions here which worked:
  - <a href="http://urlrewriter.net/index.php/support/installation/windows-server-2003" rel="nofollow">http://urlrewriter.net/index.php/support/installation/windows-server-2003</a></p>
  
  <p>But someday we may have to upgrade to IIS 7 on a shared hosting environment and the same issue will appear again!</p>