Search Knowledge Base by Keyword

Table of Contents
< Back
You are here:
Print

Mistake – Incorrect Country or Language Codes

There are a number of common country and language errors that may seem correct to developers 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=”https://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=”https://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 situation, we suggest you assign the pages for the /es-la/ regional site to Represent Multiple Countries of a region.  In this case, one or more 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 verticals.  In the capture below, Volvo’s system trying to convert their Diplomat and Military divisions into countries to map them in HREFLang.  It seems the system is trying to use the country/language folder structure to create the tags.  There is NOT a DI ISO country code and MI is the code for Midway Islands.  

 

 

Table of Contents