asp.net - MVC4 Why can't route as .html file? -


i'm use visual studio 2012 mvc4. want web page looks .html suffix. add code on routeconfig:

routes.maproute(    name: "static",    url: "{controller}/{action}/{id}.html",    defaults: new { controller = "home", action = "index", id = urlparameter.optional } ); 

but problem can't access it, page returns 404, , shows message:

the resource not found or removed.......

is there way can let route html page? thanks

disable handler .html extension.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -