Search and visibility
Hreflang and multilingual SEO: setting up a German and English site
Hreflang breaks when one of three things is missing: a separate URL per language, a self-reference, or a return link. This guide covers those and the setup around them.
Key takeaways
- Give every language its own indexable URL. A folder such as /de/ is the simplest structure for most small sites.
- Every page lists all of its language versions including itself, and every version links back. Use valid codes: language first, then optional region.
- Each page’s canonical points to itself, never to another language.
- Have a native speaker review translations, and translate only the pages you can keep up to date.
- Let visitors choose their language, and keep every version reachable by its own URL.
Choose a URL structure
| Structure | Example | Suits | Watch for |
|---|---|---|---|
| Subfolder | example.com/de/ | Most small and mid-sized sites | Needs the same navigation and slugs per language |
| Subdomain | de.example.com | Larger sites with separate teams | Treated as a separate site for some tools |
| Country domain | example.de | Businesses with a real presence in one country | Each domain builds its own authority and costs more to run |
A subfolder keeps everything on one domain and is the easiest to run. Whatever you choose, give each language its own URL. Do not switch language on one URL by cookie or script, because search engines will only ever see one version.
What hreflang does
Hreflang is a set of annotations telling Google that several pages are the same content in different languages or for different regions. Google can then show the right version to the right person. It does not raise rankings by itself, and it only works between pages that are real equivalents of each other.
Codes start with the language (ISO 639-1, such as de, en or fr) and can add a region (ISO 3166-1, such as AT, CH or GB). So de, de-AT and en-GB are valid. en-UK is not, because the region code for the United Kingdom is GB.
The three rules
- Every page lists all versions, including itself. The English page lists English and German. So does the German page.
- Every version links back. If page A points to page B, page B must point to page A, or the pair can be ignored.
- Use full URLs, and add a fallback. Include the protocol and domain, and add x-default for visitors whose language you do not cover, usually the English page or a language chooser.
<link rel="alternate" hreflang="en" href="https://example.com/pricing" />
<link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
The German page carries the same three lines.
Where to put it
Hreflang can go in the page head, in HTTP headers (useful for PDFs) or in the XML sitemap. You can use more than one place as long as they agree. This site declares its German and English pairs in the page head and in the sitemap. Sitemaps are easier to maintain when the site is large.
Canonicals and untranslated pages
- Each page’s canonical URL points to itself. Pointing the German canonical at the English page tells Google to ignore the German one.
- If a page has no translation, do not create an English copy under /de/ and do not list a German alternate for it. Leave it as a page in one language only.
- Set the page’s lang attribute correctly. Other search engines may rely on it instead of hreflang.
Translation quality and localisation
Machine translation is a fair first draft. Publishing it with no human review risks errors and stiff wording, and readers notice. Have a native speaker check each page before it goes live.
- Research the search terms people use in German instead of translating your English keywords word for word.
- Translate titles, meta descriptions, image alt text and buttons, not only the body text.
- Adapt currency, units, date formats and examples.
- Check legal requirements for your market. German-language sites aimed at Germany typically need a legal notice (Impressum), for example. Ask a professional.
Our multilingual content localization service covers this work if you want help.
Language switching and redirects
Give visitors a visible language switcher that takes them to the equivalent page, not to the home page, whenever an equivalent exists. Remember their choice.
Many sites redirect visitors to a language version based on country or browser language. Google advises against automatic redirects based on perceived language or location, because crawlers may then never reach all versions. If you redirect, keep every version reachable by its own URL, let an explicit choice by the visitor override the rule, and never redirect someone who is already on a page in another language.
Launch checklist
- Every language URL returns a normal page and is indexable.
- Hreflang is reciprocal, includes the page itself and uses valid codes.
- Canonicals point to the page itself.
- The sitemap lists both versions.
- The lang attribute matches the page language.
- The switcher goes to the equivalent page.
- Search Console shows both versions as indexed, and the pages report no hreflang errors.
- A native speaker has reviewed the translated pages.
Common questions
Do I need hreflang if my German page covers different content?
No. Hreflang links equivalent pages. If the German page is about something different from the English one, treat them as separate pages with no hreflang between them.
Does hreflang help with search engines other than Google?
Google uses it. Other search engines may rely on different signals, such as the page’s language attribute and the content itself, so set those correctly too.
Can I translate only some pages?
Yes, and it is often the sensible choice. Translate the pages that matter most, keep them current, and leave the rest in one language with no alternates.
