WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Canonical error  en

Autor: Adrian B.
Visitado 2577, Seguidores 1, Compartilhado 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

Publicado em
3 RESPOSTAS
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.

Ler mais
Publicado em de Aleksej H.
Adrian B.
Adrian B.
User
Autor

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,

Ler mais
Publicado em 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/

Ler mais
Publicado em de Aleksej H.