title: MapRequestHandler - 404.0 Error when routing .html from .aspx in IIS 8.0
body: <p>I am using URL Rewriting in <code>Asp.net</code> framework 4.0 and I am replacing aspx with an html extension (i.e. I am using routing like Login.aspx as Login.html). But it is showing error a 404 <em>(not found)</em> error. In short, URL Rewriting with .html extension is not working on IIS 8.0. Without .html (like Login.aspx with login), it is working fine.</p>
  
  <p>Check this : </p>
  
  <ul>
  <li><p><a href="http://www.theprojectjugaad.com/Login.html" rel="noreferrer">theprojectjugaad.com/Login.html</a> (404.0 error)</p>
  
  <p><a href="https://i.stack.imgur.com/23aO2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/23aO2.png" alt=""></a></p></li>
  <li><p><a href="http://www.theprojectjugaad.com/Register" rel="noreferrer">theprojectjugaad.com/Register</a> (Working fine)</p></li>
  </ul>
  
  <p>Please help me to solve this.</p>
  
  <p><strong>Global.asax</strong></p>
  
  <pre><code>void Application_Start(object sender, EventArgs e)
  {
          RegisterRoutes();
  }
  
  private static void RegisterRoutes()
  {
          System.Web.Routing.RouteTable.Routes.Add(
                  "Login", new System.Web.Routing.Route("Login.html",
                                      new DisplayRouteHandler("~/Login.aspx")));
  }
  </code></pre>