Canonical error
Author: Adrian B.
Visited 2586,
Followers 1,
Shared 0
I'm using canonical tags and I have a recurring error with a sitemap generator I'm using (pro-sitemaps.com) "points to different url":
<link rel="canonical" href="https://www.abthermal.com/index.html" />
this version reports pointing to: "/"
<link rel="canonical" href="https://www.abthermal.com/" />
this version reports pointing to: "index.html"
Not an X5 problem, but wondering if I should just ignore it or any suggestions?
Thank you, Adrian
Posted on the
Hello.You have a double: "https://www.abthermal.com/index.html" and "https://www.abthermal.com/". There should be only one main page. Set up redirection.
Author
So on the Home page of X5 project, doesn't this canonical code (below) in the Expert area of Page Properties force the main page to be https://www.abthermal.com/index.html?
<link rel="canonical" href="https://www.abthermal.com/index.html" />
Is there some other redirect to use? And if so what is it and where do I enter it?
Thank you Aleksej,
"Properties force the main page to be https://www.abthermal.com/index.html?" - you still have two addresses: https://www.abthermal.com/index.html , https://www.abthermal.com/ For each of them you have a canonical, indicating itself.
"Is there some other redirect to use? And if so what is it and where do I enter it?"
Configure 301 redirect on the server. You need to create a ".htaccess" file in the root folder of your site (without a name, only an extension). And put these line there:
Redirect 301 /index.html https://www.abthermal.com/