Background
Gaffar Digital publishes its website in English and Russian. International sites often make the same mistakes: mixed-language pages, missing hreflang, or automatic redirects that hide one language from search engines.
Challenge
- Give each language its own crawlable URLs.
- Tell search engines which page is the equivalent in the other language.
- Offer visitors their likely language automatically without hiding pages from crawlers.
Objectives
- One URL per page per language, with consistent canonical tags.
- Reciprocal hreflang annotations, including an x-default page.
- Language detection that respects explicit choices and never applies to crawlers.
What we did
- Served English at the root and Russian under a dedicated path prefix, each with self-referencing canonical tags.
- Generated hreflang annotations for every page that exists in both languages, plus x-default, and listed both versions in the XML sitemap.
- Added a language switcher that maps every page to its equivalent in the other language.
- Implemented automatic language selection at the edge based on browser language and location, applied only to a visitor's first page, only for pages that exist in both languages, and never for search engine crawlers.
- Stored an explicit language choice in a cookie that always wins over detection.
Deliverables
- Language-aware routing, metadata and sitemap
- Edge logic for language selection with automated tests
- A language switcher available on every page
Results
Automated tests confirm that crawlers are never redirected, that an explicit choice is respected, and that only translated pages are eligible for automatic selection. Every page that exists in both languages publishes reciprocal hreflang annotations.
This is our own website, not a client project, and no search performance figures are claimed.
Lessons
Automatic language redirects are fine for people but risky for crawlers. Excluding bots and honouring explicit choices removes most of the risk.
See our technical SEO service and the technical SEO audit checklist.




