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
Post a Comment