This post is for the person responsible for the international setup of a hospital or clinic website that serves patients in India and the UAE, in English and in Arabic. If you have a separate section or domain for the Gulf market and you are not sure whether your hreflang annotations help or hurt, this is a working guide to getting them right.
Hreflang is simple to describe and easy to get wrong in practice. The rules fit in a paragraph. The errors come from large sites, template code, multiple language versions and a content team that treats the Arabic site as a translation of the English one. A hospital group with an English India site, an English UAE site and an Arabic UAE site has three versions of many pages, and every one of them must agree with the others.
We cover the rules from Google's documentation, the specific codes for this market mix, the four most common errors, how to audit an existing setup, and why the Arabic edition should be separate content, not a translated twin. This is guidance on implementation; the clinical, advertising and permit content on each page stays with your compliance owners.
The rules, from Google's documentation
Google's page on localized versions of your pages sets out the rules that matter:
- Return links. If page A points to page B, page B must point back to page A. Otherwise the annotations may be ignored. The document says that if two pages do not both point to each other, the tags will be ignored.
- Self-reference. Every version lists itself as well as the others, and the set of annotations is the same on each version.
- Language and region codes. The first part is a language code (ISO 639-1), optionally followed by a region (ISO 3166-1 Alpha 2). A region on its own is not valid. Codes are case-insensitive.
- x-default. Use it for a fallback page, such as a language or country selector, for users whose language or region does not match any of your versions.
- Duplicates. Localized versions count as duplicates only if the main content stays untranslated. Fully translated pages do not.
- Method. HTML link tags, HTTP headers and sitemap entries are equivalent to Google. Pick one, because using all three adds maintenance with no benefit.
- Language detection. Google does not rely on hreflang or the HTML
langattribute to detect a page's language. It reads the content.
The codes for this setup
For a site with three live versions, a typical set is:
| Version | Example URL path | hreflang value |
|---|---|---|
| English for India | /in/ or the root | en-IN |
| English for the UAE | /ae/en/ | en-AE |
| Arabic for the UAE | /ae/ar/ | ar-AE |
| Fallback or selector | / | x-default |
Some judgement is needed on each row.
Should you use region codes at all? Use a region code only if the content differs by region. English pages for India and the UAE that differ in doctors, phone numbers, currency, regulatory statements, prices, insurance and permits are legitimately regional versions. If the English content is identical, one English version without a region may be enough. Google notes that language-only codes suit content that is not region-specific, and that regional variants of one language benefit from a generic catch-all.
Is ar-AE the right code? If the Arabic page is written for the UAE audience, yes. If you also serve Saudi Arabia with a different edition, add ar-SA as its own version rather than reusing the UAE page. If you serve a pan-Arabic audience with one page, ar is acceptable. Do not invent codes such as ar-GCC; region must be a country code.
What should x-default be? The page that best handles a visitor you cannot classify. Options: a country and language selector, or the version most users should land on. Do not set x-default to a page that automatically redirects by IP address, because crawlers cannot follow a decision they cannot see. Keep it simple and static.
The four errors we see most
1. Missing or broken return tags
The English page lists the Arabic page, but the Arabic page does not list the English one, or lists a slightly different URL (trailing slash, http versus https, a parameter). Google's rules say the tags are then ignored. The cause is often template code that builds the alternate URLs from a mapping table that is incomplete for new pages.
2. Annotations pointing at non-canonical, redirected or non-200 URLs
Each hreflang target should be the final canonical URL of that version. Pointing it at a URL that redirects, that returns an error, or that canonicalises elsewhere sends mixed signals. Google also says it prefers URLs that belong to reciprocal hreflang clusters, so consistency among hreflang, canonical and sitemap helps.
3. Canonical tags that cancel the hreflang
If the Arabic page declares the English page as its canonical, you have told Google the Arabic page is a duplicate of the English one. Each language version should be self-canonical and listed in hreflang. A cross-language canonical removes the Arabic URL from consideration.
4. Mixed methods that disagree
Hreflang in the HTML for some pages, in the sitemap for others and in HTTP headers for PDFs gives three sources to keep in step. Google treats them equally, so pick one method for the whole site, and apply it by template.




