title: Errror 404 in httpmodule on IIS6 asp.net 3.5
body: <p>I have created a simple URL rewrite module in an asp.net 3.5 webforms website. The module redirects to /default.aspx using this code : </p>
  
  <pre><code>HttpApplication app = (HttpApplication)source;
  
  HttpContext ctx = app.Context;
  
  ctx.RewritePath("~/default.aspx");
  
  return;
  </code></pre>
  
  <p>Locally on vs2010 it works fine (it redirects all requests). On the server it gives me error 404 when request file does not exist else if the request points to an existing page it redirects fine. Can you please help me find what is the problem that gives me 404 errors ?</p>
  
  <p><strong>SOVLED :</strong> The problem with IIS6 is that it does fire an asp.net httpmodule only if the extension of the given url is .aspx. </p>