The short answer: hreflang tells Google that your English and Arabic pages are versions of the same content, so it can show each searcher the right one. On a UAE site, every English page should list itself and its Arabic twin (for example en-AE and ar-AE, or simply en and ar), every Arabic page should list the same set back, all URLs must be absolute, and each page’s canonical should point to a page in its own language. Most hreflang failures come from missing return links, wrong codes and canonicals that point across languages.
Google states the core rule plainly in its documentation on localised versions: if two pages don’t both point to each other, the tags will be ignored. This guide covers how to choose your codes for the UAE and GCC, the three ways to implement hreflang, copy ready examples for English and Arabic, how hreflang works with canonical tags, the errors I find most often in bilingual audits, and how to check your setup now that Search Console no longer has a hreflang report.
What does hreflang do on an English and Arabic website?
Hreflang groups the language versions of a page so Google can swap in the version that matches the searcher’s language or region. It does not translate pages, detect language or boost rankings on its own. Google says it doesn’t use hreflang or the HTML lang attribute to detect a page’s language; it uses its own algorithms, and it relies on the visible content, as explained in its guide to multilingual and multi regional sites.
For a UAE business, the practical value is clear. Without hreflang, an Arabic speaking user in Abu Dhabi may land on your English page, or your English and Arabic pages may compete for the same branded searches. With hreflang in place, Google has an explicit signal about which version belongs to which audience.
| What hreflang does | What hreflang does not do |
|---|---|
| Tells Google which pages are language or region versions of each other | Translate content or fix poor translations |
| Helps Google show the right version to each searcher | Detect the language of a page |
| Reduces English and Arabic versions competing in results | Act as a ranking boost on its own |
| Lets you set a fallback page for other languages | Replace canonical tags for true duplicates |
Which hreflang codes should UAE and GCC websites use?
Use a language code from ISO 639 (part 1) first, optionally followed by a region code from ISO 3166 (part 1, two letter). Google’s documentation says only these code lists are supported and that you can’t specify the country code by itself. For most UAE sites, the choice is between language only codes and language plus region codes.
| Situation | Codes to use | Why |
|---|---|---|
| One English and one Arabic version for everyone | en, ar, x-default | Simplest; serves both languages across all countries |
| UAE only business with prices in AED | en-AE, ar-AE, x-default | Signals the UAE audience; useful if you later add other GCC sites |
| UAE and Saudi sites with different prices or stock | en-AE, ar-AE, en-SA, ar-SA, x-default | Separates countries that share a language |
| GCC wide site in Arabic plus a UAE English site | ar, en-AE, x-default | Catch all Arabic page plus a regional English page |
Google’s guidance also suggests that when you have several pages for the same language in different regions, you provide a catch all version for that language, such as ar, for users in other countries. Use x-default for the page that should appear when no other version matches, such as a language selector or your main English page.
Hreflang codes that look right but are wrong
| Code | Problem | Correct code |
|---|---|---|
ae | ae is the ISO 639 language code for Avestan, an ancient language, not the UAE | ar-AE or en-AE |
en-UAE | Region codes are two letters | en-AE |
AE | A country code alone is not valid; the first code must be a language | ar-AE or en-AE |
en-UK | UK is a reserved code with no effect in Search | en-GB |
ar-EG | Valid, but only if the page is genuinely for Egypt | ar for a generic Arabic page |
I have found the ae mistake on more than one UAE site, because developers read it as the country code. Search your templates for hreflang="ae" as a first check.
How do you implement hreflang: HTML tags, HTTP headers or sitemaps?
You can implement hreflang in the HTML head, in HTTP headers or in an XML sitemap. Google says the three methods are equivalent from its perspective, and using more than one gives no extra benefit while making maintenance harder. Pick one method per site and stick to it.
| Method | Best for | Watch out for |
|---|---|---|
| HTML link tags in the head | Most WordPress, Shopify and custom sites | Adds weight to every page; must be generated by the CMS |
| HTTP headers | PDFs and other files with no HTML head | Needs server or CDN configuration access |
| XML sitemap | Large sites and headless setups where templates are hard to change | Sitemaps must stay in sync with live URLs |
Hreflang HTML example for an English and Arabic page
Place the same set of tags on both the English and the Arabic page. Each page lists itself and its alternate, plus the fallback.
<!-- On https://www.example.ae/en/services/ AND https://www.example.ae/ar/services/ -->
<link rel="alternate" hreflang="en-AE" href="https://www.example.ae/en/services/" />
<link rel="alternate" hreflang="ar-AE" href="https://www.example.ae/ar/services/" />
<link rel="alternate" hreflang="x-default" href="https://www.example.ae/en/services/" />
Hreflang XML sitemap example
In a sitemap, each URL entry lists all alternates, including itself. The sitemap must declare the xhtml namespace.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.example.ae/en/services/</loc>
<xhtml:link rel="alternate" hreflang="en-AE" href="https://www.example.ae/en/services/"/>
<xhtml:link rel="alternate" hreflang="ar-AE" href="https://www.example.ae/ar/services/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.ae/en/services/"/>
</url>
<url>
<loc>https://www.example.ae/ar/services/</loc>
<xhtml:link rel="alternate" hreflang="en-AE" href="https://www.example.ae/en/services/"/>
<xhtml:link rel="alternate" hreflang="ar-AE" href="https://www.example.ae/ar/services/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://www.example.ae/en/services/"/>
</url>
</urlset>
Hreflang HTTP header example for PDFs
Link: <https://www.example.ae/en/brochure.pdf>; rel="alternate"; hreflang="en-AE",
<https://www.example.ae/ar/brochure.pdf>; rel="alternate"; hreflang="ar-AE"
The domain and URLs in these examples are illustrative. Replace them with your own and keep the paths consistent across languages where you can, because matching paths make errors easier to spot.
How should hreflang and canonical tags work together?
Each language version should have a self referencing canonical, and the canonical URL must be the same URL you list in hreflang. Google’s guide to consolidating duplicate URLs says that if you use hreflang, you should specify a canonical page in the same language, or the best possible substitute language.
| Setup | Result |
|---|---|
| Arabic page canonical points to the Arabic page itself | Correct; both versions can be indexed and swapped |
| Arabic page canonical points to the English page | Arabic page is treated as a duplicate and may drop out of results |
| Canonical uses a URL with parameters, hreflang uses the clean URL | Signals conflict; Google may ignore the hreflang |
| Canonical on HTTP, hreflang on HTTPS | Conflict; align both to the live HTTPS URL |
In bilingual audits I run, a cross language canonical is one of the most damaging hreflang errors, because it can quietly stop Google indexing the Arabic pages. It usually comes from a theme or plugin that sets every canonical to the default language.
What are the most common hreflang errors on bilingual UAE sites?
The most common hreflang errors are missing return links, invalid codes, relative URLs, canonicals that point across languages and hreflang URLs that redirect or return errors. Each one can cause Google to ignore some or all of your annotations.
| Error | Why it breaks hreflang | Fix |
|---|---|---|
| Missing return link | Google ignores tags unless both pages point to each other | Generate tags from one shared mapping so both sides always match |
| Missing self reference | Each version must list itself and all others | Include the current page in its own set |
| Relative URLs | Alternate URLs must be fully qualified, including https | Output absolute URLs from the CMS |
| Invalid or reversed codes | Only ISO 639 language codes and two letter ISO 3166 region codes work, language first | Validate codes against the lists |
| Hreflang to redirected or 404 URLs | The alternate is not a valid indexable page | Point only to live, 200 status, indexable URLs |
| Hreflang to noindex pages | The alternate cannot be indexed | Remove noindex or remove the page from the set |
| Arabic page missing, English tag still points to it | Broken pair | Remove the tag until the translation exists |
| Tags only on the home page | Inner pages get no language signals | Apply hreflang site wide through templates |
Several of these errors overlap with wider Arabic site problems, which we cover in Arabic SEO mistakes to avoid. If your Arabic content is machine translated, fix that too: hreflang can only route users to a page; it cannot make a weak page rank.
How do you check hreflang without the Search Console report?
Check hreflang with a site crawler, page by page spot checks and Search Console’s indexing reports. Google deprecated the International Targeting report, which used to show hreflang errors, but says it will continue to support and use hreflang tags on your pages.
Hreflang audit in six checks
Repeat after every release that touches templates, plugins or URLs
For a full bilingual review covering right to left layout, translated metadata and Arabic schema, use our bilingual SEO audit checklist, and record findings in our SEO audit report template.
How does hreflang work on WordPress and Shopify sites in the UAE?
On WordPress and Shopify, hreflang is usually generated by the multilingual plugin or platform feature, so your job is to configure it correctly and then verify the output. Do not add hreflang by hand on top of a plugin, because duplicate or conflicting sets are a common cause of errors.
- WordPress: multilingual plugins link translations and output hreflang for each pair. Check that every post and page has its translation linked; untranslated items can output tags pointing to the home page or nowhere.
- Shopify: Shopify outputs hreflang for published languages and markets. Check that each market uses the right language and region combination and that Arabic is published for the markets that need it.
- Headless and custom builds: generate hreflang from one shared mapping table, and output it in either the head or the sitemap, not both.
- SEO plugins: make sure your SEO plugin and multilingual plugin are not both setting canonicals; one source of truth avoids cross language canonicals.
For Shopify specifics such as AED pricing and multiple markets, see our guide to Shopify SEO for UAE stores.
What does a correct hreflang setup look like for a UAE business?
Illustrative example, not a real client. A Dubai based home services company has an English site, an Arabic site, and a new Saudi Arabic section with different prices.
| Page version | URL | Hreflang code |
|---|---|---|
| English, UAE | example.ae/en/ac/ | en-AE |
| Arabic, UAE | example.ae/ar/ac/ | ar-AE |
| Arabic, Saudi Arabia | example.ae/sa/ar/ac/ | ar-SA |
| Fallback for everyone else | example.ae/en/ac/ | x-default |
All three pages carry the same four tags, each has a self referencing canonical, and the Saudi page is only added to the set once it is live and translated. The Arabic copy for each market is written for that audience rather than copied; our guide to Gulf Arabic versus Modern Standard Arabic covers how to choose the right register.
How Crawl To Click helps with hreflang and bilingual SEO
Crawl To Click is an SEO and AI visibility consultancy working with bilingual and multi market websites across retail, real estate, healthcare, SaaS, fintech, hospitality and professional services. For hreflang we map every language and market version, fix codes, return links and canonicals at template level, check plugin and platform output, and set up repeatable checks so releases do not break the setup again.
Frequently asked questions about hreflang
What is hreflang?
Hreflang is an attribute that tells search engines which pages are language or regional versions of the same content. Google uses it to show each searcher the version that best matches their language or location.
Which hreflang code should I use for Arabic in the UAE?
Use the language code ar on its own for a general Arabic page, or ar followed by the region code AE for a page aimed specifically at the UAE. Never use ae on its own, because that is the code for the Avestan language.
Do hreflang tags need to be on both pages?
Yes. Google ignores hreflang annotations unless both pages point to each other, and each page must also list itself along with all other versions.
Should the Arabic page have its own canonical tag?
Yes. Each language version should have a self referencing canonical. Pointing the Arabic page’s canonical to the English page tells Google to treat it as a duplicate, which can remove it from results.
What is x default in hreflang?
The x default value marks the fallback page Google shows when no other language or region version matches the searcher, such as a language selector or your main English page.
Is it better to put hreflang in the HTML or the sitemap?
Google treats HTML tags, HTTP headers and sitemaps as equivalent. Choose the one your team can maintain reliably, and use only one method per site.
How do I check hreflang now that Search Console’s report is gone?
Use a site crawler that extracts hreflang, check return links, codes, status codes and canonicals, and use Search Console’s URL Inspection tool to confirm Google indexed each language version.
Stuck on hreflang errors?
Stuck on a hreflang or bilingual indexing issue this guide didn’t cover? Get a second pair of eyes on your English and Arabic setup.
Disclaimer: The domain, URLs and company in the examples are illustrative and do not describe a real business. Plugin and platform behaviour changes between versions; always verify the live output on your own site.
