A multilingual website ranks abroad when each language has its own URL, reciprocal hreflang annotations, canonical tags that stay inside the language and a visible language switcher. Translation is the easy part. This guide covers the structure decisions and the mistakes that hide a site from foreign customers.
Most multilingual websites do not fail because of bad translation. They fail because the three or four language versions are not built as separate, findable pages. The Spanish text is excellent, but Google shows the English page to Spanish buyers, or never indexes the Spanish one at all.
Translation is the easy half. The hard half is structure: URLs, hreflang annotations, canonical tags and the way visitors move between languages. This article covers the decisions that matter when we build company websites in several languages, and the mistakes we see most often.
How do you build a multilingual website that search engines understand?
Give every language its own permanent URL, preferably in a subdirectory such as /en/, /pl/ and /es/. Link each page to its equivalents with reciprocal hreflang annotations, point each canonical tag at the same language version, and let visitors choose their language through a visible switcher instead of automatic redirects.
Subdirectories, subdomains or country domains?
There are three common ways to separate languages. All of them can rank. The difference is how much work they create and how much of your existing authority they keep.
| Option | Example | Strengths | Weaknesses |
|---|---|---|---|
| Subdirectories | example.com/pl/ | One domain, one hosting setup, one set of links and one analytics view. Cheapest to run. | The server location and domain are shared by every market. |
| Subdomains | pl.example.com | Can be hosted separately, with a different team per market. | Search engines may treat each subdomain more like a separate site, and setup and monitoring multiply. |
| Country domains | example.pl, example.es | Strong local trust, a clear country signal, full separation. | You must buy, renew and promote every domain. Authority is not shared. |
For most companies selling in two to five countries we recommend subdirectories. You keep one domain, one certificate, one codebase and one set of backlinks working for every language. Country domains make sense when you already own strong local brands or when a market needs a fully separate legal and commercial entity.
Note that a language is not a country. Spanish is spoken in many countries, and a /es/ section serves all of them unless you decide to build regional versions.
One language, one URL: never switch by cookie
A common shortcut is a single address such as example.com/services that shows English or Polish depending on a cookie, the session or the browser language. A search engine crawler arrives with no cookie. It sees one version, indexes that one, and the other languages do not exist for it.
Every language version needs its own URL that always returns the same language. That also makes pages shareable: a link sent by a Spanish colleague opens in Spanish for the person who receives it.
Translated URL slugs help users
The path should be written in the language of the page. A visitor who reads /pl/uslugi/ knows it is Polish and about services before the page loads, and the same applies to /es/servicios/. The words in a URL appear in search results and are easier to remember and type.
This website works that way. The contact page is /en/contact-us in English, /pl/kontakt in Polish and /es/contacto in Spanish. Translating slugs is a small piece of work during the build, and a painful one to retrofit, because every changed address needs a permanent redirect. We cover that in our article on redesigning a website without losing search traffic.

What hreflang does and how to write it correctly
The hreflang annotation tells Google that several pages are the same content in different languages, so it can show each searcher the version that matches their language. It is a signal about which version to show, not a ranking boost.
Three rules decide whether it works:
- Reciprocal. Every version lists all versions, including itself. If the English page points to the Spanish one but the Spanish page does not point back, the annotation can be ignored.
- Valid codes. Use a language code (
en,pl,es) and add a region only when the content really differs by country, for exampleen-gbanden-us. The region is never used alone. - x-default. Optionally add
x-defaultfor the page that serves visitors whose language you do not cover, usually your default language or a language selector.
This is a complete block for a page that exists in three languages. The same block appears on all three pages:
<link rel="alternate" hreflang="en" href="https://example.com/en/services/">
<link rel="alternate" hreflang="pl" href="https://example.com/pl/uslugi/">
<link rel="alternate" hreflang="es" href="https://example.com/es/servicios/">
<link rel="alternate" hreflang="x-default" href="https://example.com/en/services/">
You can place these annotations in three places: in the head of each page, in the XML sitemap, or in HTTP headers, which is the option for files such as PDFs. Choose one method and keep it consistent. The head is simplest for a normal site, and a sitemap is easier to maintain when pages are numerous.
Canonical tags point to the same language
A canonical tag names the preferred address of a page. On a multilingual site each page should be canonical to itself. A frequent mistake is setting every translation to canonical to the English page, which tells Google to ignore the translations. The Polish page needs a canonical pointing to the Polish page.
The same applies to pagination and filtered lists: the canonical stays inside the language. Our technical SEO checklist for a new website covers canonicals, sitemaps and indexing in more depth.
Do not redirect visitors by IP or browser language
Automatic redirects look helpful and cause three problems. Crawlers usually come from one country, so they may never see your other versions. A visitor in Spain who prefers English gets locked out. And a person who shares a link ends up on a different page than the one they sent.
Offer a visible language switcher in the header or footer instead. It should lead to the equivalent page in the other language, not to that language's home page. If the page has no translation yet, say so or hide the option.
A polite banner that suggests another language, which the visitor can dismiss, is acceptable. A forced redirect is not.
Translate everything a search engine reads
The body text is only part of a page. Check that each language has its own:
- title tag and meta description, written for the searcher in that language;
- image alt text and file names where practical;
- structured data, so names, descriptions and breadcrumbs match the page language;
- navigation, buttons, form labels and error messages;
- XML sitemap entries and the
langattribute on thehtmlelement.
A Spanish page with an English title tag sends a mixed signal and looks wrong in Spanish results.
Research keywords per language, then localise the content
People do not search in translations. The phrase you rank for in English may have no equivalent, or a different one that people actually type. Run keyword research separately for each market and write the page around the real phrase. For Polish and Spanish, we check search results in that language, not a dictionary.
Localisation goes beyond words: currencies, date and number formats, phone numbers, examples a local buyer recognises, delivery and tax information, and legal pages such as privacy policy, terms and cookie notice, which must reflect the rules of the country you sell in. Have a person who reads the language review any machine translation before it goes live. Machine translation is a good first draft, but it misses tone, industry vocabulary and small errors that cost trust.
Multilingual structure matters just as much for large projects. Our article on planning a shared learning platform for a university consortium shows how language requirements shape a platform from the first design decision.
Pre-launch checklist for a multilingual website
- Every language has its own URL that always returns the same language.
- Slugs are translated and consistent across all versions.
- Each page has a self-referencing canonical tag.
- Hreflang is reciprocal, includes the page itself and uses valid codes.
- An
x-defaultentry is set, if you use one. - There are no automatic redirects based on IP or browser language.
- A visible switcher leads to the equivalent page.
- Titles, descriptions, alt text and structured data are translated.
- The sitemap lists every version and the
langattribute is correct. - Keywords were researched per language, not translated.
- Currency, legal pages and examples are localised.
- A person has reviewed every machine-translated page.
- Search Console shows each version indexed, with no hreflang errors.
What to do next
If you already have a multilingual site, test three things first: whether each language has its own URL, whether hreflang is reciprocal, and whether canonicals point to the right language. Those three are the most common reasons a language version does not show up in search.
If you are building a new one, decide the URL structure before design starts, because changing it later means redirects and lost time. We build multilingual company websites in English, Polish and Spanish, and our SEO work covers audits of existing language versions. When you are ready, contact us and we will start with a conversation.