: What hreflang value, should I use for country selectors? So our website supports 3 different languages (RU, EN and LT), <link rel="alternate" href="http://example.com/" hreflang="lt" /> <link
So our website supports 3 different languages (RU, EN and LT),
<link rel="alternate" href="http://example.com/" hreflang="lt" />
<link rel="alternate" href="http://en.example.com/" hreflang="en" />
<link rel="alternate" href="http://ru.example.com/" hreflang="ru" />
None of these variations are region specific, do my understanding is that as long as these are in every page, it will do the job?
What I want to clarify though, is part with language selectors, we have 3 links like so:
<a href="http://ru.example.com/" rel="alternate" hreflang="x-default" title="RU">RU</a>
<a href="http://en.example.com/" rel="alternate" hreflang="x-default" title="EN">EN</a>
<a href="http://example.com/" rel="alternate" hreflang="x-default" title="LT">LT</a>
Did I use hreflang attribute correctly in this scenario? Or does it somehow need to reference the link tags in the header somehow?
More posts by @Sent6035632
1 Comments
Sorted by latest first Latest Oldest Best
Language selectors, which, if i understand you correctly, are placed in the body, don't need rel="alternate" hreflang="x-default" constructions. Such are only for the head.
Your snippet
<link rel="alternate" href="http://example.com/" hreflang="lt" />
<link rel="alternate" href="http://en.example.com/" hreflang="en" />
<link rel="alternate" href="http://ru.example.com/" hreflang="ru" />
is correct for sites with the same content in different languages.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.