i want to create my url like this:
www.example.com/Content/page.html
on top of my ContentControler I use:
[RoutePrefix("Home")]
and on top of my index action I use:
[Route("page.html")]
but when I request this url this error will happen:
HTTP Error 404.0 - Not Found
how i can solve this problem? thanks for help
You need to change your
web.configto get this working. Add in the line below:Further information on what this does here: http://www.iis.net/configreference/system.webserver/modules