I have the following 2 lines in my global.asax
routes.MapRoute("myTest1", "test", new {
controller = "Home", action = "Page", id = "Home"
});
routes.MapRoute("myTest2", "test.html", new {
controller = "Home", action = "Page", id = "Home" });
The first line above works perfectly, and both lines work when testing locally. The problem comes when putting this on my live server. The second line goes to a 404, as does any other that ends with .html
I really don't understand why it works locally, yet not online.
Any advice would be great. Thanks
--- EDIT ---
I have looked in IIS but i'm not sure the problem lies there. I tried uploading a html file "test.html" and the page loads perfectly even though its set to redirect.