Google Error Duplicate Home Pages
Autor: DENNIS S.
Visitado 636,
Followers 1,
Compartido 0
All of a sudden I'm getting duplicate page errors for my home page. The duplicates are www.domainname.com and www.domainname.com/index.html
Which is the correct URL within X5 Pro
Does anyone know how to correct this error?
Please advise
Dennis
Publicado en
In WebSite X5 under...
3 Sitemap
... mark the homepage and click on "Properties" at the top, then click on "Advanced" and at ...
Custom code:
Before the closing HEAD tag
...add this code...
<linkrel="canonical" href="https://www.domainname.com/index.html" />
... so Google knows which is the correct address.
Correction - with a space at "link rel".
<link rel="canonical" href="https://www.domainname.com/index.html" />