How to Set Up an Arabic and English Website for Search

Infinity Agency ·

A bilingual site can reach more people, but only if search engines understand which version is meant for whom. A few technical decisions made early save a lot of confusion later.

Use a separate URL for each language

Give each language its own path, for example /ar/ and /en/. Avoid changing the language on the same URL based on a cookie or the visitor browser setting, because search engines may only ever see one version.

Add hreflang annotations

Hreflang tells search engines that two pages are alternates for different languages. Each page should reference itself and its counterpart, and the references must be reciprocal. Add an x-default pointing to the version you want as the fallback.

Only add an alternate if that page really exists. If an article exists in one language only, do not point to a page that does not exist.

Set canonical tags correctly

Each language version should have a canonical URL pointing to itself. Do not canonicalize the English page to the Arabic one, or the English version may be dropped from results.

Handle direction and language in the code

Set the lang attribute and dir="rtl" on Arabic pages, and test forms, tables and numbers. Mixed-direction text such as phone numbers and date ranges needs explicit handling.

Write for each audience, not just translate

Search behavior differs between languages. Write natural titles, headings and examples for each market, and do not machine translate pages without review.

Sitemaps and the language switcher

Include both versions in your sitemap. A visible language switcher that links to the equivalent page helps visitors and gives crawlers a clean path.

Frequently asked questions

Should I use subdomains or folders for languages?

Both work. Folders such as /ar/ and /en/ are simple to manage on a single site. The key is consistency and correct hreflang.

Does Google read hreflang as a ranking boost?

No. It helps serve the right language version to the right user. It is not a ranking guarantee.

What if I only have some pages in English?

That is fine. Link alternates only where a real counterpart exists and keep the rest in one language.

Related services

Keep reading

Got a project? Tell us.

See our workBook a call