WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Canonical error  en

Author: Adrian B.
Visited 567, 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
3 ANSWERS
Aleksej H.
Aleksej H.
Moderator
Best User of the month RU

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.

Read more
Posted on the from Aleksej H.
Adrian B.
Adrian B.
User
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,

Read more
Posted on the from Adrian B.
Aleksej H.
Aleksej H.
Moderator
Best User of the month RU

"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/

Read more
Posted on the from Aleksej H.