MVC 4 Remove “home” from base route
Basically I want to make it so that: http://website.com/Home/About Shows up as: http://website.com/About The "home" controller showing up in the url would make the url longer for the user to read. I tried to do the following: routes.MapRoute( name: "About", url: "", defaults: new { controller = "Home", action = "About", id = UrlParameter.Optional } ); Could someone help me out please? Try something like this: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "OnlyAction", "{action}", new { controller = "Home", action = "Index" } ); routes.MapRoute( "Default", // Route name "