How to Build a Bilingual Arabic–English Website That Ranks: RTL, SEO and UX Best Practices
A good bilingual Arabic–English website gives each language its own URL (for example /en and /ar), renders the content in that language on the server, marks the pages as translations with hreflang tags, and designs right-to-left layouts deliberately rather than simply mirroring the English version.
Key takeaways
- Give each language its own URL, such as /en/... and /ar/....
- Render translated text on the server — don’t swap it with JavaScript.
- Use hreflang tags and an x-default to connect translations.
- Set lang and dir="rtl" on the html element for Arabic pages.
- Translate metadata too: titles, descriptions, image alt text and structured data.
For businesses in Jordan and the Gulf, a website usually needs to speak both Arabic and English. Done well, that doubles your reach in search engines and AI assistants. Done poorly, search engines may only ever see one language. Here are the practices that matter.
Give every language its own URL
Search engines index URLs, not toggles. If the Arabic and English versions share one address and switch with a button, only one version is likely to be indexed. Use a clear structure such as example.com/en/services and example.com/ar/services.
Render the language on the server
Some sites load English and then replace the text with Arabic using JavaScript. Crawlers and AI tools may read the original English, so your Arabic content is effectively invisible. Each language URL should deliver its own translated HTML directly.
Connect translations with hreflang
Add <link rel="alternate" hreflang="ar"> and hreflang="en" tags on every page, pointing to each version, plus an x-default. This tells Google which page to show to which user and prevents the two versions competing with each other. Include the same alternates in your XML sitemap.
Set direction and language correctly
Arabic pages should use <html lang="ar" dir="rtl">. Use CSS logical properties (such as margin-inline-start instead of margin-left) so one stylesheet works in both directions.
Design RTL deliberately
- Typography: Arabic needs fonts designed for it and usually more generous line height.
- Icons: arrows and progress indicators should flip; logos, media controls and charts often should not.
- Numbers and mixed text: phone numbers, emails and code stay left-to-right inside Arabic sentences.
- Length: translated text can be longer or shorter — test layouts with real copy.
Translate everything search engines read
Page titles, meta descriptions, headings, image alt text, URLs where sensible, and structured data should all exist in the page’s language. Write Arabic content for Arabic searchers — the phrases people type are not always direct translations of the English keywords.
Make switching easy for people
Put a visible language link in the header that goes to the same page in the other language, not back to the home page. Remember the visitor’s choice, but never force a redirect that stops search engines reaching either version.
How to Build a Bilingual Arabic–English Website That Ranks: RTL, SEO and UX Best Practices
Should Arabic and English be on separate domains?
Usually not. Subfolders on one domain (/ar and /en) are simpler to manage and share the domain’s authority. Separate country domains make sense mainly when you run different businesses per country.
Can I use automatic translation for the Arabic version?
Machine translation is a useful first draft, but customer-facing pages should be reviewed by a fluent writer. Unnatural Arabic hurts trust and conversions, and search engines reward content written for the reader.