Multilingual Website SEO: URLs, hreflang and Translation
How to add a second language to a business website without hurting search visibility: URL structure, hreflang rules, translation quality and common mistakes.
Published:
Many businesses in the United States serve customers who prefer another language: Spanish, Russian, Chinese, Vietnamese and many more. Adding that language to the website can open a group of customers your competitors ignore. Done carelessly, it produces pages that search engines cannot find or show to the wrong audience. The rules are not complicated, and Google documents them clearly. This is a summary you can hand to whoever builds your site.
One language, one URL
Google recommends using a different URL for each language version of a page, instead of using cookies or browser settings to change the language of the content on a single address. The reason is practical: a search engine indexes addresses. If English and Spanish share one URL and the visitor's browser decides which is shown, the crawler sees only one of them.
Google's documentation notes that its crawler usually operates from the United States and sends requests without a language preference. A site that picks the language automatically will therefore show Google the default version every time, and the other languages may never be indexed.
Choosing a URL structure
- Subdirectories: example.com/es/. The simplest to set up and maintain on one domain, and the usual choice for a business that works in one country in several languages.
- Subdomains: es.example.com. Workable, with more technical overhead.
- Country domains: example.de. Suited to a company with separate operations in each country.
- URL parameters: example.com?lang=es. Google marks this option as not recommended.
For a small business adding a second language, subdirectories are almost always the right answer.
Do not redirect by guesswork
It is tempting to detect the visitor's browser language or location and send them straight to the matching version. Google advises against automatically redirecting users between language versions: it can keep both visitors and crawlers from seeing all versions of the site. A person in Miami with an English-language browser may still prefer to read in Spanish.
The better pattern is a visible language switcher on every page, built from ordinary links, that leads to the same page in the other language and not to the home page. You may show a polite suggestion such as "This page is available in Spanish", but let the visitor choose.
hreflang: telling Google which page is for whom
hreflang annotations tell Google that several URLs are versions of the same page in different languages, so that it can show each searcher the appropriate one. There are three equivalent ways to provide them: link tags in the HTML head, HTTP headers, or the sitemap. Choose one.
The rules that matter:
- Each language version must list itself and all the other versions.
- The references must be mutual. If the English page points to the Spanish page but the Spanish page does not point back, the annotations are ignored.
- Use full URLs, including https://.
- Language codes follow ISO 639-1 (en, es, ru). A region can be added in ISO 3166-1 Alpha 2 format (en-US, es-MX), but only when you really have different content for different countries. A region code on its own is not valid.
- x-default marks the page to use when no listed language matches the visitor's browser settings, such as a language selection page or your main version.
For an English and Spanish page, the head of both versions would contain the same three lines: one alternate link with hreflang "en" pointing to the English URL, one with hreflang "es" pointing to the Spanish URL, and one with hreflang "x-default" pointing to whichever version you treat as the fallback.
One clarification that surprises many people: Google states that it does not use hreflang or the HTML lang attribute to detect the language of a page. It works that out from the visible content. Still set the lang attribute correctly, since browsers and screen readers rely on it, but do not expect any tag to compensate for a page whose text is in the wrong language.
Translate the whole page, not just the paragraphs
Because language is determined from what is visible, a half-translated page sends a mixed signal. Google also says that localized versions are considered duplicates only if the main content remains untranslated, so a page with a translated menu around English body text gains nothing. Check that all of the following exist in each language:
- Page title and meta description.
- Headings, body text, buttons and form labels.
- Navigation, footer and cookie or legal notices.
- Image alt text and text inside images.
- Error messages and the confirmation shown after a form is sent.
- URLs, where practical: a readable address in the page's language is friendlier, though not required.
Translation quality is a business question
A page that reads like a machine wrote it tells the customer that nobody at the company speaks their language. Machine translation is a reasonable first draft. Google's guidance on AI-generated content is that it must be reviewed and fact-checked by a person and must add value for users. In practice:
- Have a native speaker edit every page, not just proofread it.
- Translate meaning, not words. Service names, units, date formats and examples should be what that audience actually uses.
- Research search terms in the target language separately. People do not search for a literal translation of your English keywords.
- Translate first what matters most: home page, main services, contacts. A small, complete version is better than a large, patchy one.
Be ready to answer in that language
A Spanish page that leads to an English-only phone line breaks the promise the page made. Before launch, decide who answers enquiries in the new language, translate the automatic replies, and say on the page in which languages you can serve customers. If you have a Google Business Profile, your website link can stay the same; make sure the landing page has an obvious language switcher.
A pre-launch checklist
- Every language version has its own URL and can be opened directly.
- No automatic redirects based on browser language or location.
- A language switcher on every page links to the same page in the other language.
- hreflang annotations are present, mutual and include a self-reference and x-default.
- Each page has a translated title, description and headings.
- The sitemap contains the URLs of all language versions.
- The html lang attribute matches the page's language.
- Forms, error messages and confirmation emails are translated.
- After launch, check in Search Console that the new pages are indexed.
We build multilingual websites and localize existing ones, preparing the texts in every language you need and taking care of a clean technical setup. If you are planning to add a language, tell us about your site through the contact form and we will outline what it would involve.