Gaz
Gaz

Reputation: 1249

Displaying HTML pages in an ASP.Net MVC Web App

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

Answers (1)

David
David

Reputation: 15360

routes.IgnoreRoute("{resource}.html/{*pathInfo}"); worked for me. And place it before all other route definitions in your global.asax.

Upvotes: 3

Related Questions