Answer the question
In order to leave comments, you need to log in
Did I understand/apply rel=canonical correctly?
Hello!
The site is in asp mvc, the main page is available both on city.com and on citycom/Home/Index
Is it correct to insert into the Index.cshtml file/represented in the header section:
or is it correct to insert into the home controller action:<link rel="canonical" href="http://city.com" />
...
public ActionResult Index()
{
return RedirectPermanent("http://city.com");
}
...
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