Back to Insights
    Web DevelopmentMuscat

    Bilingual Websites (English + Arabic): Tech Guide

    A technical guide to bilingual websites in English and Arabic: URL structure, hreflang, RTL handling, language switching, and SEO for MENA audiences.

    Asma D., Product & Web Engineering LeadMay 18, 202611 min readUpdated July 15, 2026
    The short answer

    A bilingual English-Arabic website needs a clear URL structure (usually subdirectories like /en and /ar), correct hreflang signals, proper right-to-left handling for Arabic, a language switcher that preserves context, and genuine translated content. Done right, both language versions are discoverable, fast, and feel native to their audience across MENA.

    Key takeaways

    • Choose a clear URL strategy, subdirectories such as /en and /ar are usually best for SEO.
    • Use hreflang so Google serves the right language version to each audience.
    • Arabic requires right-to-left handling; do not merely translate an LTR layout.
    • A good language switcher keeps users on the equivalent page, not the homepage.
    • Real translation and native review beat machine translation for professional MENA sites.

    How should a bilingual English-Arabic website be structured?

    A bilingual English-Arabic website should be structured with a clear, consistent URL strategy so each language version is separately discoverable. The most common and SEO-friendly approach is subdirectories, for example, /en and /ar paths on the same domain, which keep the site's authority unified while giving each language its own crawlable set of pages. Subdomains and separate domains are possible but usually add complexity without benefit for most businesses.

    Consistency is what makes the structure work. Every page should have a predictable equivalent in the other language, mapped one to one, so users and search engines can move between them cleanly. For a Muscat business, this structural discipline is the backbone that everything else, hreflang, switching, and SEO, depends on.

    Choosing the URL structure early is important because changing it later means redirects and lost equity. Decide the pattern up front and apply it uniformly.

    How does hreflang work for Arabic and English pages?

    Hreflang works by telling search engines which language and region each version of a page targets, so the right version appears for the right user. On a bilingual site, each page declares its alternates, an English page points to its Arabic equivalent and vice versa, and an x-default can specify a fallback when no language matches. This prevents the two versions from competing and reduces duplicate-content confusion.

    Correct hreflang is reciprocal and complete: if the English page references the Arabic one, the Arabic page must reference the English one back. Errors, missing return tags, wrong language codes, or inconsistent URLs, quietly undermine bilingual SEO. For a Muscat site targeting Arabic and English speakers, getting hreflang right ensures both audiences are served the page meant for them.

    • Declare hreflang alternates on every bilingual page.
    • Make references reciprocal, each version points to the other.
    • Use correct language codes (en and ar) and consistent URLs.
    • Add x-default for a sensible fallback.

    How do you handle right-to-left layout in a bilingual site?

    Handling right-to-left layout in a bilingual site means the Arabic version must genuinely flip direction, not just swap words. When a user switches to Arabic, the dir attribute changes to rtl, the layout mirrors, and text aligns to the right. Using CSS logical properties lets one set of styles serve both directions, so the English and Arabic versions stay in sync without duplicated stylesheets.

    The subtle work is deciding what mirrors and what does not, layout and navigation mirror, while logos, certain icons, and numerals typically stay put. A Muscat business that builds direction-awareness into the codebase from the start avoids the fragile, bug-prone alternative of maintaining two divergent layouts.

    What makes a good language switcher?

    A good language switcher keeps users oriented by taking them to the equivalent page in the other language, not dumping them on the homepage. If a customer is reading an Arabic product page and switches to English, they should land on that same product in English. Losing their place is a common, avoidable frustration that undermines the whole bilingual experience.

    A good switcher is also easy to find, clearly labeled in each language (English and العربية shown in their own scripts), and remembers the user's preference where appropriate. For a Muscat site, these small details signal care and make the bilingual experience feel deliberate rather than tacked on.

    Should you use machine translation or human translation?

    Choosing between machine and human translation for a bilingual site is a quality decision with real consequences. Machine translation is fast and cheap and can help with drafts or low-stakes content, but for customer-facing pages it often produces stiff, awkward, or subtly incorrect Arabic that erodes trust with a professional audience. Domain terms, tone, and idioms are where machine output most often fails.

    The reliable approach is human translation, or at least thorough native review of machine drafts, for anything that represents the brand. A Muscat business competing for Arabic-speaking customers cannot afford Arabic that reads as translated, native-quality content is what makes the site feel like it was built for its audience, because it was.

    How do you keep a bilingual site maintainable over time?

    Keeping a bilingual site maintainable over time comes from managing content and structure deliberately rather than duplicating pages by hand. Using a content management approach that pairs each piece of content with its translation, and building the layout to be direction-aware, means new pages automatically respect the bilingual structure instead of drifting apart.

    Maintainability also means a clear process: when English content changes, the Arabic equivalent is updated too, and hreflang and links stay consistent. For a Muscat business, treating the two languages as one coordinated system, not two websites glued together, is what keeps a bilingual site accurate, discoverable, and easy to grow.

    Bilingual website URL strategies compared

    ApproachExampleBest for
    Subdirectoriesexample.com/en, example.com/arMost bilingual business sites
    Subdomainsen.example.com, ar.example.comSeparate infrastructure needs
    Separate domainsexample.com, example.arDistinct brands or markets
    Parametersexample.com?lang=arNot recommended for SEO

    “A bilingual site is one coordinated system, not two websites glued together. When the URL structure, hreflang, right-to-left handling, and translations are designed together, both versions stay in sync and feel native. When they are bolted on separately, the Arabic side is always the one that quietly drifts out of date.”

    Asma D., Product & Web Engineering Lead

    Frequently asked questions

    What URL structure is best for a bilingual English-Arabic site?

    Subdirectories such as example.com/en and example.com/ar are usually best. They keep the site's authority unified on one domain, give each language its own crawlable pages, and are straightforward to manage. Subdomains and separate domains work for specific cases but add complexity. Avoid language query parameters, which are weaker for SEO.

    What happens if I get hreflang wrong?

    Incorrect hreflang, missing return tags, wrong language codes, or inconsistent URLs, can cause the wrong language version to appear in search or the two versions to compete, weakening both. Hreflang must be reciprocal and consistent. Getting it right ensures Arabic and English users each see the page intended for them.

    Is machine translation good enough for an Arabic website?

    For customer-facing content, usually not. Machine translation often produces stiff or subtly wrong Arabic that undermines trust with professional audiences. It can help with drafts or low-stakes text, but brand-facing pages need human translation or thorough native review. Native-quality Arabic is what makes a bilingual site feel credible rather than translated.

    Should the language switcher return users to the homepage?

    No. A good language switcher takes users to the equivalent page in the other language, not the homepage. If someone switches languages on a product page, they should land on that same product translated. Preserving context is a small detail that significantly improves the bilingual experience and reduces user frustration.