WebSite X5Help Center

 
Adrian B.
Adrian B.
User

Canonical error  en

Автор: Adrian B.
Просмотрено 2627, Подписчики 1, Размещенный 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

Размещено
3 Ответы
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.

Читать больше
Размещено От Aleksej H.
Adrian B.
Adrian B.
User
Автор

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,

Читать больше
Размещено От 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/

Читать больше
Размещено От Aleksej H.