Guide
Persian–English bilingual website: hreflang and RTL done right
A bilingual website is two complete versions of the same site, each with its own addresses, translation and keywords. For Persian and English that also means a true right-to-left layout for Persian. Done badly it confuses visitors and search engines; done well, each language ranks on its own.
By: Amirhossein Bazdar, CTOLast updated:
How should URLs be structured on a Persian–English bilingual website?
Give each language its own addresses: either a path prefix (/ for one language and /en for the other), a subdomain or a separate domain. A prefix on one domain is the simplest to run and keeps all links and authority in one place. Avoid one address that switches language with JavaScript, because search engines index addresses.
| Approach | Example | Notes |
|---|---|---|
| Path prefix | example.com/ and example.com/en | Simplest to run; authority stays on one domain |
| Subdomain | en.example.com | Treated more like a separate site; more to maintain |
| Separate domain | example.com and example.ir | Strongest local signal; the most work and cost |
What is hreflang and what does a correct setup look like?
hreflang tells search engines which page is the equivalent in another language, so a Persian reader is shown the Persian page and an English reader the English one. Every page must list itself and its counterpart, and the counterpart must point back. One version is marked x-default as the fallback.
<!-- In the <head> of https://example.com/services (Persian) -->
<link rel="canonical" href="https://example.com/services" />
<link rel="alternate" hreflang="fa" href="https://example.com/services" />
<link rel="alternate" hreflang="en" href="https://example.com/en/services" />
<link rel="alternate" hreflang="x-default" href="https://example.com/services" />
<!-- The English page lists exactly the same four lines,
with its own canonical: https://example.com/en/services -->// Next.js: the same thing with the metadata API
export const metadata = {
alternates: {
canonical: "/services",
languages: {
fa: "/services",
en: "/en/services",
"x-default": "/services",
},
},
};Which hreflang mistakes are most common?
One-way links (A points to B but B does not point back), a missing self-reference, hreflang pointing to a redirected or noindex page, wrong language codes, and a canonical that points at the other language. Any of these makes search engines ignore the whole set.
- The counterpart page does not link back
- A page does not list itself
- hreflang URLs that redirect or are blocked
- Wrong codes: use fa and en, with regions only if needed
- A canonical that points to the other language's page
What does a real right-to-left (RTL) layout need?
More than right-aligned text: the whole layout mirrors, so columns, navigation order, icons and arrows flip; the typeface supports Persian properly; digits follow the language; and spacing is tuned for joined letters. The page also sets lang and dir attributes so browsers and assistive tools behave correctly.
- dir="rtl" and lang="fa" on the document
- Mirrored layout, column order and navigation
- Arrows and icons that point the right way
- A Persian typeface with the weights you need
- Persian digits in Persian text
- No letter-spacing on Persian, which breaks the joins
Which Persian typography details are easy to miss?
The half-space (zero-width non-joiner) inside compound words, the Persian forms of y and k rather than the Arabic ones, Persian digits, and not tracking out letters. They are small, but readers notice them immediately, and search queries use the correct forms.
Use the Persian letters ی and ک, not the Arabic ي and ك, so text matches what people type. Put a zero-width non-joiner in words such as «میشود» and «نمونهکار». Never apply letter-spacing to Persian text.
How should content be managed in both languages?
From one place with one structure, so no page exists in only one language and nothing is forgotten. Give each page a translation status, review translations rather than publishing machine output, and keep a shared list of terms so the same thing is always called the same thing.
Does each language need its own SEO?
Yes. People do not search in two languages the same way, so each version needs its own keyword research, titles, descriptions and headings, not a literal translation. Both versions are indexed separately, and hreflang connects them.
How do you test that a bilingual site is correct?
Crawl the site and check that every page returns 200, every hreflang pair links both ways, canonicals point at themselves and the language switch goes to the same page in the other language. Then read both versions as a reader would, on a phone.
- Crawl all URLs: status 200, no redirect chains
- Check hreflang reciprocity for every page pair
- Confirm each canonical points to its own page
- Test the language switch lands on the equivalent page
- Review the RTL layout and typography on a phone
How can Bellona help with a bilingual site?
We design and build Persian–English sites with separate URLs, true RTL and correct hreflang, as on this site. Start with the free growth audit and you get a fixed quote in writing.
LET'S TALK
Ready when
you are.
Tell us where it hurts. You get a free 30-minute growth audit and, if it fits, a fixed quote.
Prefer to pick a time?
Book a free growth auditOr email bellona.ai.team@gmail.com