You can create you own custom routes like this,
This should be the first route
routes.MapRoute(
name: "Default_Custom",
url: "MyCustom-{action}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
and make sure that you have this line in Global.asax
protected void Application_Start()
{
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
This woks for the all request like @Html.ActionLink("Home", "Index", "Home")
But the request like
@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
Will be handled by the default route
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);