Answer the question
In order to leave comments, you need to log in
How to change the route?
Hello!
The standard route in asp is as follows:
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
routes.MapRoute(
"HomeContact",
"contact",
new { controller = "Home", action = "Contact" }
);
<link rel="canonical" href="http://site/Contact" />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question