Hreflang error
-
Hello.
I have problem with hreflang.My site is in Turkish and I have added Azeri language support with TranslatePress plugin. I ended up with the following:
<link rel="alternate" hreflang="tr-TR" href="https://mysite.com/"/> <link rel="alternate" hreflang="tr" href="https://mysite.com/"/> <link rel="alternate" hreflang="az" href="https://mysite.com/az/"/> <link rel="alternate" hreflang="x-default" href="https://mysite.com/"/>
The problem is that the page
https://mysite.com/
is have language code
<html lang="tr-TR">
So if i understand correctly, we have extra link
<link rel="alternate" hreflang="tr" href="https://mysite.com/"/>
which shouldn’t be.This is repeated on all pages of the site.
Also, Netpeak Spider shows me the error. So all pages of sites indicates as language code is not consistent with the language code of incoming hreflang links.
Is there any way to disable this alternate link?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hreflang error’ is closed to new replies.