How to deploy ASP.NET MVC application in a shared hosting without losing the beautiful uri?

Posted by ZX12R on Stack Overflow See other posts from Stack Overflow or by ZX12R
Published on 2010-03-15T12:08:15Z Indexed on 2010/03/15 12:09 UTC
Read the original article Hit count: 293

Filed under:
|

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.:)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc