Skip to content

hreflang Done Right for Arabic/English Laravel Sites

M Mohamed Khalifa
Bilingual sites lose rankings when Google indexes the wrong language version. Correct hreflang alternates fix it — here is the exact setup.

For a site with /en/... and /ar/... URLs, every page must declare all of its language versions — including itself — plus an x-default:

<link rel="alternate" hreflang="en" href="https://example.com/en/services">
<link rel="alternate" hreflang="ar" href="https://example.com/ar/services">
<link rel="alternate" hreflang="x-default" href="https://example.com/en/services">

The two most common mistakes: pointing alternates at the homepage instead of the equivalent page, and forgetting the self-referencing tag. Both make Google ignore the whole set. Add the same alternates to your sitemap with xhtml:link entries for faster pickup.

Back to Blog Technical SEO

Next deploy

Got a project in mind? Let's build it right.

Open a production channel. Architecture first. Delivery owned end to end.

visitor@khalifadev:~ ● ready

$ Contact::connect();

✓ channel open

info@khalifadev.com

$ Mail::send( 'next-system' );