title: ASP.NET MVC Routing - add .html extension to routes
body: <p>i am pretty new to MVC and Routing and i was asked to modify an app to use diffrent url's.
  a task that is a bit over me since i have no experience.</p>
  
  <p>ok, lets talk a bit of code:</p>
  
  <pre><code>routes.MapRoute(
  "CategoryBySeName", // Route name
  "products/{SeName}", // URL with parameters
  new { controller = "Catalog", action = "CategoryBySeName" }
  );
  </code></pre>
  
  <p>this works as expected, but then the client wanted ".html" at the end of paths, so i changed:</p>
  
  <pre><code>"products/{SeName}", // URL with parameters
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>"products/{SeName}.html", // URL with parameters
  </code></pre>
  
  <p>which fails ( IIS 404 page - MapRequestHandler)
  it seems like iis is trying to load a physical file with that name instead of passing it to the application.</p>
  
  <p>Similar: <a href="https://stackoverflow.com/questions/794753/asp-net-mvc-routing-to-start-at-html-page">ASP.NET MVC Routing to start at html page</a> (not answered, Not duplicate)</p>