Your site has a lovely “EN / RU” switch. Click it and the text changes. Perfect for a person. For a search engine, often not: it sees one address and one language, and the second hides behind a button the robot never presses. As a result half of your translation work brings in zero visitors from search.

Let’s look at how SEO works for a site in two languages and where people usually go wrong.

The main rule: one language, one address

Search engines index addresses. If language is switched by a script while the address stays the same (the text is swapped on the fly and the language remembered in a cookie or localStorage), then for a robot only the default version exists. The second version physically can’t get into the index — there is nothing to hold onto.

Each language must live at its own permanent address: site.com/ and site.com/ru/ (subdirectories are the simplest and most reliable option), or separate subdomains or domains. The language switch then becomes an ordinary link to the neighbouring version of the same page.

Nublya points at two doors — one address for Russian and one for English
If both languages share one address, the search engine has one entrance and the second room stays locked.

hreflang: telling the search engine who is whose twin

The hreflang attribute tells a search engine that pages are translations of one another and lets it show the right version in results depending on the user’s language. In the <head> of every page it looks like this:

<link rel="alternate" hreflang="en" href="https://site.com/" />
<link rel="alternate" hreflang="ru" href="https://site.com/ru/" />
<link rel="alternate" hreflang="x-default" href="https://site.com/" />

Three nuances where people trip most often:

  1. Links must be reciprocal. If the English page points to the Russian one, the Russian page must point back. One-sided markup is ignored.
  2. A page references itself too. Its own version must be in the list, otherwise the set is considered incomplete.
  3. Language codes follow the standard. ru, en, uk (not “ua” — that is a country code, not a language), and the region comes after the language: en-GB, not “en-UK”.

x-default is the “just in case” page shown when the user’s language matches none of the versions. Usually it’s the English page or a language chooser. The same set of relations can be declared in the XML sitemap; for large sites that’s even more convenient.

Canonical: don’t point the Russian version at the English one

One of the most dangerous mistakes is to set rel="canonical" on all language versions to the same page (say, the English one) “to avoid duplicates”. You’re telling the search engine, “this is the main version, ignore the rest”. The Russian page vanishes from results.

Right: each version’s canonical points to itself, and the relation between languages is expressed through hreflang. Translations aren’t duplicates; they’re independent pages for different audiences.

Remember the formula. Canonical answers “which of the identical pages is the main one?”, hreflang answers “which of the similar pages does this reader need?”. They are different questions and the tools must not be mixed.

Automatic redirects by browser language — careful

The temptation is clear: a visitor with a Russian interface arrives — send them to the Russian version. But a hard server-side redirect by IP or the Accept-Language header breaks indexing. A crawler most often arrives from the US with no language preferences, gets “bounced” to one version and never sees the others. If you want to adapt to the user, do it softly: a polite “Open the Russian version?” prompt or a client-side adjustment where both addresses stay reachable without redirects. And remember a person’s explicit choice over auto-detection.

Translate more than the text

The typical half-translated page: the main text is Russian, while <title>, the description, image captions and structured data stayed in English. A search engine takes such a page for a mixture and understands less well who it is for. Translate (really — rewrite) everything the robot sees:

  • the title and meta description — what a person sees in the results;
  • image alt attributes and captions;
  • button and navigation text, breadcrumbs;
  • the lang attribute on <html> and the language in structured data;
  • where possible the URL slug itself: something readable for that audience.

Keywords aren’t translated word for word

People phrase the same query differently in different languages. A Russian-speaking user searches “разработка сайта под ключ”, an English-speaking one “web development agency”; a literal translation of the first phrase matches none of the popular English phrasings. So keyword research is done separately per language, and the Russian page is written as an independent text, not an interlinear. It’s also why you shouldn’t publish unedited machine translation: search engines dislike mass-generated text that gives readers nothing.

Nublya compares two keyword lists in different languages
“Разработка сайта” and “website development” aren’t translations of each other — they’re two different search worlds.

How to check that hreflang is right

hreflang errors are silent: the site looks fine, but the search engine ignores the markup. So you have to check it deliberately, and you can do it for free.

  1. View the page source (not “Elements” in DevTools, which shows the code after scripts have run). If the alternate links are in the raw HTML, the robot will see them on the first pass.
  2. Walk the circle. Open an address, find the link to the other version, open it — and make sure it contains a link back. A missing “return tag” is the most common reason markup is ignored.
  3. Make sure all addresses return 200, with no redirects and no noindex. An hreflang link to a redirected or noindexed page doesn’t work.
  4. Use a crawler. Free and paid site crawlers can collect hreflang across the whole site and list pages with no return link, wrong language codes and canonical conflicts.
  5. Watch Search Console. In the performance reports you can filter queries by country: if the Russian page starts getting impressions from a Russian-speaking audience and the English one from an English-speaking audience, it’s working.

One more detail: when a version of a page is missing (an article translated into only one language), don’t put hreflang on a non-existent address and don’t send the reader “to the homepage” instead of a translation. Simply omit the second version, and make the language switch lead to the nearest section, such as the article list. Honest incompleteness beats a broken link.

A checklist for a bilingual site

  1. Every language has its own permanent address, reachable without JavaScript or cookies.
  2. Every page carries a full reciprocal hreflang set plus x-default.
  3. Each version’s canonical points to itself.
  4. No hard redirects by browser language or IP.
  5. Title, description, alt, lang and structured data are translated.
  6. The sitemap lists both languages with alternates.
  7. The language switch goes to the matching page, not always to the homepage.

Need a site that’s found in both Russian and English? We set that up from the start of development — let’s discuss your project.