Arabic variants done right
Use ar for any Arabic, or ar-SA / ar-EG / ar-AE to target a country. We keep the codes valid so Google maps them correctly.
We use analytics to improve the site. Decline keeps analytics cookieless. Privacy details
Build correct hreflang link tags for a bilingual site — Arabic locale variants first-class — plus an x-default. Paste straight into your <head>.
Use ar for any Arabic, or ar-SA / ar-EG / ar-AE to target a country. We keep the codes valid so Google maps them correctly.
x-default tells search engines which URL to show users whose language you don't target. Usually your English or a language picker.
This tool checks what a bot sees from a public URL. The free Aetos edition runs a real audit from inside WordPress — across your pages and WordPress environment — so it catches signals an outside view cannot see.
Yes — hreflang must be reciprocal. The Arabic page links to the English and vice versa, or Google ignores them.
In the <head> of each page (or in your XML sitemap / HTTP headers). Putting them in <head> is the simplest for most sites.
Add two rows (ar and en) and set x-default to the version most visitors should land on. That is a complete, valid setup.