Welcome to WebmasterWorld Guest from 3.227.249.234

Forum Moderators: mack

hreflang two languages

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

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

New User

joined:Sept 10, 2019
posts:7
votes: 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
2:19 pm on Sept 16, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4509
votes: 348


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.
9:54 pm on Sept 16, 2019 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 15, 2003
posts:2642
votes: 6


Is this for the <head> section of the page or in an XML sitemap?
1:14 am on Sept 17, 2019 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11842
votes: 242


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" />
1:15 am on Sept 17, 2019 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11842
votes: 242


welcome to WebmasterWorld [webmasterworld.com], testalba!