Skip to content

Instantly share code, notes, and snippets.

@matijagrcic
Last active August 29, 2015 14:04
Show Gist options
  • Save matijagrcic/7f6bc65a533cf20ee8e6 to your computer and use it in GitHub Desktop.
Save matijagrcic/7f6bc65a533cf20ee8e6 to your computer and use it in GitHub Desktop.
<handlers>
<add name="HtmlFileHandler" path="*.html" verb="GET" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
routes.MapRoute(
name: "Default",
url: "{controller}/{action}.html",
defaults: new { controller = "Home", action="Index" }
);
//http://www.iis.net/learn/application-frameworks/building-and-running-aspnet-applications/aspnet-integration-with-iis
//http://blogs.msdn.com/b/tmarq/archive/2010/05/26/how-extensionless-urls-are-handled-by-asp-net-v4.aspx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment