Hreflang for English and Arabic Websites: Setup and Common Errors

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 doesWhat hreflang does not do
Tells Google which pages are language or region versions of each otherTranslate content or fix poor translations
Helps Google show the right version to each searcherDetect the language of a page
Reduces English and Arabic versions competing in resultsAct as a ranking boost on its own
Lets you set a fallback page for other languagesReplace 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.

SituationCodes to useWhy
One English and one Arabic version for everyoneen, ar, x-defaultSimplest; serves both languages across all countries
UAE only business with prices in AEDen-AE, ar-AE, x-defaultSignals the UAE audience; useful if you later add other GCC sites
UAE and Saudi sites with different prices or stocken-AE, ar-AE, en-SA, ar-SA, x-defaultSeparates countries that share a language
GCC wide site in Arabic plus a UAE English sitear, en-AE, x-defaultCatch 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

CodeProblemCorrect code
aeae is the ISO 639 language code for Avestan, an ancient language, not the UAEar-AE or en-AE
en-UAERegion codes are two lettersen-AE
AEA country code alone is not valid; the first code must be a languagear-AE or en-AE
en-UKUK is a reserved code with no effect in Searchen-GB
ar-EGValid, but only if the page is genuinely for Egyptar 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.

MethodBest forWatch out for
HTML link tags in the headMost WordPress, Shopify and custom sitesAdds weight to every page; must be generated by the CMS
HTTP headersPDFs and other files with no HTML headNeeds server or CDN configuration access
XML sitemapLarge sites and headless setups where templates are hard to changeSitemaps 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.

SetupResult
Arabic page canonical points to the Arabic page itselfCorrect; both versions can be indexed and swapped
Arabic page canonical points to the English pageArabic page is treated as a duplicate and may drop out of results
Canonical uses a URL with parameters, hreflang uses the clean URLSignals conflict; Google may ignore the hreflang
Canonical on HTTP, hreflang on HTTPSConflict; 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.

ErrorWhy it breaks hreflangFix
Missing return linkGoogle ignores tags unless both pages point to each otherGenerate tags from one shared mapping so both sides always match
Missing self referenceEach version must list itself and all othersInclude the current page in its own set
Relative URLsAlternate URLs must be fully qualified, including httpsOutput absolute URLs from the CMS
Invalid or reversed codesOnly ISO 639 language codes and two letter ISO 3166 region codes work, language firstValidate codes against the lists
Hreflang to redirected or 404 URLsThe alternate is not a valid indexable pagePoint only to live, 200 status, indexable URLs
Hreflang to noindex pagesThe alternate cannot be indexedRemove noindex or remove the page from the set
Arabic page missing, English tag still points to itBroken pairRemove the tag until the translation exists
Tags only on the home pageInner pages get no language signalsApply 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

Crawl
Crawl both language versions with hreflang extraction turned on
Pairs
Confirm every URL has a return link and a self reference
Codes
Validate language and region codes; search for ae and UK
Status
All hreflang URLs return 200 and are indexable
Canonical
Each canonical matches its own hreflang URL
Index
Use URL Inspection to confirm Google picked each page as canonical

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 versionURLHreflang code
English, UAEexample.ae/en/ac/en-AE
Arabic, UAEexample.ae/ar/ac/ar-AE
Arabic, Saudi Arabiaexample.ae/sa/ar/ac/ar-SA
Fallback for everyone elseexample.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.

Get insights on finding your Search Market Fit, building SEO systems, and ranking with purpose.

Delivered bi-weekly!

Subscribe Now!
Crawl To Click © Copyright 2026. All Rights Reserved. ❤️ Developed by MB!

Newsletter Subscribe

Get insights on finding your Search Market Fit, building SEO systems, and ranking with purpose. Delivered bi-weekly

We Promise Not to Send Spam:)

Newsletter Subscribe

Get insights on finding your Search Market Fit, building SEO systems, and ranking with purpose. Delivered bi-weekly

We Promise Not to Send Spam:)