WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Canonical error  en

Auteur : Adrian B.
Visité 2582, Followers 1, Partagé 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

Posté le
3 RéPONSES
Aleksej H.
Aleksej H.
Moderator

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.

Lire plus
Posté le de Aleksej H.
Adrian B.
Adrian B.
User
Auteur

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,

Lire plus
Posté le de Adrian B.
Aleksej H.
Aleksej H.
Moderator

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

Lire plus
Posté le de Aleksej H.