Mobile app version of vmapp.org
Login or Join
Sent6035632

: 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

@Sent6035632

Posted in: #LocalSeo #Seo

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent6035632

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme