Monday, April 15, 2013

x-default hreflang Attribute to Specify Default Home Page of Multilingual Websites

Google has introduced a new x default hreflang attribute to specify default home page of multi language and multilingual websites. The x default hreflang attribute will specify both Google and Yandex search engines that this page does not targets any specific language and can be used as a default page. For example, if a website serves users on 3 different locations specifically like USA, UK and AU, then  the webmasters will use the rel-alternate-hreflang as given below:-

<link rel="alternate" href="http://example.com/en-gb" hreflang="en-gb" />
<link rel="alternate" href="http://example.com/en-us" hreflang="en-us" />
<link rel="alternate" href="http://example.com/en-au" hreflang="en-au" />
<link rel="alternate" href="http://example.com/" hreflang="x-default" />

The last tag helps to locate the default page for the rest of the users who are not targeted specifically. 


Also See:- 

Post a Comment