Reputation: 1249
I have a simple MVC site but I need to add in some static HTML pages, I have tried to add an IgnoreRoute in for .html files but this didn't work.
Upvotes: 0
Views: 591
Reputation: 15360
routes.IgnoreRoute("{resource}.html/{*pathInfo}"); worked for me. And place it before all other route definitions in your global.asax.
Upvotes: 3