How to deploy ASP.NET MVC application in a shared hosting without losing the beautiful uri?
- by ZX12R
i am trying to upload an asp.net mvc application in a shared server. I don't have access to IIS. What i have done after reading from various sources is change the route method in the global.asax file as follows
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
"{controller}.aspx/{action}/{id}",
new { action = "Index", id = "" }
);
routes.MapRoute(
"Root",
"",
new { controller = "Home", action = "Index", id = "" }
);
it is working fine. but the problem is i have lost the beautiful uri here. is there a way to remove the ".aspx" behind the controller..?
thanks in advance.:)