I want to remove Controller
named Home
from url
when user clicks on About
and Contact
pages in ASP.NET MVC
You should map new route in the global.asax (add it before the default one), for example:
routes.MapRoute("SpecificRouteforHomeController", "{action}/{id}", new {controller = "Home", action = "Index", id = UrlParameter.Optional});
// default route any defalt you want
routes.MapRoute("Default", "{controller}/{action}/{id}", new {controller = "Account", action = "Login", id = UrlParameter.Optional} );