Forum Moderators: mack

Message Too Old, No Replies

hreflang two languages

<link rel="alternate" hreflang="">

         

testalba

8:06 am on Sep 16, 2019 (gmt 0)



I have my webpage in two languages en for english and el for greece.So the prerfect way ?
I must used <link rel="alternate" hreflang="en"> and <link rel="alternate" hreflang="el"> for different queries ?
Tha basic langauge is greece

not2easy

2:19 pm on Sep 16, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If you have multiple versions of a page for different languages or regions, tell Google about these different variations. Doing so will help Google Search point users to the most appropriate version of your page by language or region.

Note that even without taking action, Google might still find alternate language versions of your page, but it is usually best for you to explicitly indicate your language- or region-specific pages.


As for how to deal with language metatags, Google [support.google.com] offers clear guidelines and explanations.

Demaestro

9:54 pm on Sep 16, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is this for the <head> section of the page or in an XML sitemap?

phranque

1:14 am on Sep 17, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I must used <link rel="alternate" hreflang="en"> and <link rel="alternate" hreflang="el"> for different queries ?
Tha basic langauge is greece

all pages with alternate language versions should have link elements referring to all other language versions as well as a self referencing link element and ideally an additional hreflang="x-default" link element which in your case would refer to the greek version.
for example:
<link rel="alternate" hreflang="en" href="https://www.example.com" />
<link rel="alternate" hreflang="el" href="https://www.example.gr" />
<link rel="alternate" hreflang="x-default" href="https://www.example.gr" />

phranque

1:15 am on Sep 17, 2019 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], testalba!