I have a simple ASP.NET Webapplication project with url-routing and want to "allow" routes with the fileextension like ".html", e.g...
http://www.mywebsite.com/cms/test.html
http://www.mywebsite.com/cms/sub/test.html
http://www.mywebsite.com/cms/sub/sub/test.html
My global.asax routes looks like this:
routes.MapPageRoute("", "cms/{a1}", "~/default.aspx");
The route is matched with when i access the website like this: http://www.mywebsite.com/cms/test
If i try this one, it doens't work too:
routes.MapPageRoute("", "cms/{a1}.html", "~/default.aspx");
EDIT: Always i get an 404 error. I think that .net looks for the physical file...
Any ideas?