Mistake – Too Many HREFLang Elements in a Page
July 28, 2018
Setting X-Default Language
July 30, 2018

Mistake – Incorrect Country or Language Codes

Search Knowledge Base by Keyword

There are a number of common country and language errors that may seem correct but are actually wrong and will give an error by the search engines.

Using the Country Code “UK” for the United Kingdom  

In the example below, the site was using “la” to designate this as their Latin America Site.  While fine in the subdirectory, using it in the HREFLang element means something entirely different.

<link rel=”alternate” hreflang=”en-UK” href=”http://www.mysite.com.com/en-uk”>

The HREFLang syntax is saying “en” representing the language of the site as “English” and “UK” which is the Country code for the “Ukraine” – the correct code for the United Kingdom is GB so this entry is incorrect.

Using the Country Code “LA” for Latin America  

In the example below, the site was using “la” to designate this as their Latin America Site.  While fine in the subdirectory, using it in the HREFLang element means something entirely different.

<link rel=”alternate” hreflang=”es-LA” href=”http://www.mysite.com.com/es_la”>

The HREFLang syntax is saying “en” representing the language of the site as “Spanish” and “LA” representing the region of the language which is the Country code for “Laos” – there is NOT a code for Latin America so this is incorrect.  In this case, we suggest you set the /es-la site to Represent Multiple Countries of a region.  In this case, one of the countries in Latin America.  This takes care of the alternative URL issue and allows you to designate this site to multiple counties.   You can do this easily by replicating countries using our HREF Builder XML site map’s functionality vs. bloating your pages by adding multiple entries in the page.

 

 

Creating Country Codes to Fit Business Verticals

Every once in a while we see companies try to make their own country or language codes to fit business verticles.  In this case, we see Volvo trying to convert their Diplomat and Military divisions into countries to map them in HREFLang