BlankComic's homepage exists in 54 languages. The editor is translated into four, and the guides are written in six. I built and maintain all of it myself, on ordinary shared hosting behind Cloudflare. This post collects what I would tell anyone starting a multilingual site, ordered by how much each lesson mattered.
Where a rule comes from Google, I link to Google's documentation. Where it is my own experience, I say so.
Lesson 1: One language, one URL
The first decision is the most important: every language version needs its own URL. If a page changes language based on a cookie or the browser's settings, search engines see only one version, and people cannot share the version they read.
There are three common patterns:
| Pattern | Example | Notes |
|---|---|---|
| Folder | example.com/es | One domain and one hosting account; strength of the domain is shared |
| Subdomain | es.example.com | Treated more like separate sites |
| Country domain | example.es | Strongest country signal; expensive and complex |
BlankComic uses folders: the English site is at the root, and other languages live in folders such as /es, /fr, /ja and /pt-br. For a small team, folders are the easiest to run, because one server, one certificate and one set of rules covers every language.
Lesson 2: Keep URLs clean and consistent
Pick one URL format and enforce it with redirects. On BlankComic every URL has no .html and no trailing slash, except the English homepage. So blankcomic.com/es/blog exists; blankcomic.com/es/blog/ and blankcomic.com/es/blog.html redirect to it with a permanent (301) redirect.
This matters more on a multilingual site because every mistake is multiplied by the number of languages. One inconsistent link pattern in a template becomes 54 duplicate URLs.
Lesson 3: hreflang, done the boring way
hreflang tells search engines which pages are translations of each other, so they can show a Spanish speaker the Spanish page. Google accepts it in three places: <link rel="alternate"> tags in the page head, HTTP Link headers, or the XML sitemap, and says these methods are equivalent (Google: localized versions).
I put hreflang in the sitemap, not in each page. With 54 homepages, adding one language would otherwise mean editing 54 page heads. With the sitemap approach, a script reads which pages exist and writes the whole set at once.
Whichever method you choose, Google's rules are the same:
- Each version must list itself and all other versions. If page X points to page Y, page Y must point back to X. One-way annotations may be ignored.
- Use an
x-defaultfor a fallback page shown when no language matches. Google designed it for language selector pages; on BlankComic it points to the English homepage. - Use the right codes. The language is an ISO 639-1 code, optionally followed by a region in ISO 3166-1 Alpha-2, such as
pt-BR. A region alone is invalid, and Google lists codes such ases-419as unsupported.
One fact is easy to miss: Google says it does not use the hreflang annotation or the HTML lang attribute to work out which language a page is in. It detects the language from the content itself. So a page that says lang="fr" but is mostly English will be treated as English. The translation has to be real.
Lesson 4: Do not auto-redirect visitors by language
It is tempting to detect a visitor's browser language and redirect them. Do not do it on content pages. Search engine crawlers usually visit without a language preference, so automatic redirects can hide your translated pages from them. People also travel, use shared computers and read more than one language.
BlankComic shows a small language link instead and lets people choose. Google's guidance specifically recommends an x-default fallback for auto-redirecting home pages and language selectors, which tells you how much trouble they cause.
Lesson 5: Translate for search, not word for word
This is the lesson most multilingual sites miss. A literal translation of an English page often ranks for nothing, because people in another country do not search with translated English phrases.
For each language I now check:
- The words people really use. The everyday word for a comic, a comic strip or a template differs between languages and even between countries that share one.
- Local examples. Paper sizes are a good example: A4 is normal in most of the world, Letter in the United States.
- The title and description. These are written for each language, not translated from English after the fact.
A good process: translate the page, then search for its main topic in that language and compare your words with what the top results use.
Lesson 6: Keep the language menu small
With 54 languages, it is easy to put a giant language menu on every page. I keep menus short and link to one languages page that lists everything. A short menu is lighter, easier to use on a phone, and keeps the page about its topic instead of about the site's structure.
Lesson 7: Tell search engines when things change
A sitemap helps search engines find pages. On BlankComic, a script regenerates it after I change pages, sets each page's last-modified date, and submits changed URLs through IndexNow, a protocol used by Bing and other search engines to learn about updates quickly (IndexNow). For Google, I submit the sitemap in Search Console and use URL Inspection for the most important new pages.
Lesson 8: Measure each language separately
In Search Console, filter performance by page path (for example, pages containing /es/) to see each language on its own. A language with many impressions and few clicks usually needs a better title, not more pages. A language with no impressions at all usually has a technical problem: missing hreflang, a wrong canonical, or pages that are not indexed.
What hreflang in a sitemap looks like
Here is a simplified example for one page in three languages. Each <url> lists every version, including itself, plus the x-default:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://example.com/</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://example.com/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://example.com/es"/>
<xhtml:link rel="alternate" hreflang="pt-BR" href="https://example.com/pt-br"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/"/>
</url>
<url>
<loc>https://example.com/es</loc>
<!-- the same four xhtml:link lines -->
</url>
<!-- and one <url> for /pt-br with the same lines -->
</urlset>
Notice that the URL folder is /pt-br while the hreflang code is pt-BR. Codes are not case-sensitive for Google, but writing the region in capitals makes mistakes easier to spot.
The hreflang errors I check for
- Missing return links. Page A lists page B, but B does not list A. Google may ignore the pair.
- Pointing at redirects. Every URL in an hreflang set should return 200 directly, not redirect to another address.
- Canonical conflicts. A translated page whose canonical points to the English page tells Google it is a duplicate, which cancels the hreflang.
- Noindex pages in the set. A page that asks not to be indexed should not be listed as an alternate.
- Wrong codes.
en-UKinstead ofen-GB, an underscore instead of a hyphen, or a region code with no language.
A checklist for your own site
- Every language has its own URL in a folder.
- One URL format, enforced with 301 redirects.
- Each page has a self-referencing canonical in its own language.
- hreflang in one place (I recommend the sitemap), reciprocal, with
x-default. - Correct language codes, such as
pt-BR, notpt_BRores-419. - No automatic redirects by browser language.
- Titles, descriptions and key terms researched in each language.
- A short language menu and one page that lists all languages.
- A sitemap that updates itself, plus IndexNow for fast discovery.
- Search Console reports filtered by language folder.
Frequently asked questions
Should a multilingual site use folders or subdomains?
For a small team, folders such as /es and /fr are usually easiest: one domain, one server and one set of rules for every language.
Where should I put hreflang tags?
Google treats HTML tags, HTTP headers and XML sitemaps as equivalent. A sitemap is easiest to keep correct when you have many languages, because one script can write every annotation.
What is x-default in hreflang?
It marks a fallback page for visitors whose language does not match any version, such as a language selector or your main homepage.
Does Google use the HTML lang attribute to detect language?
No. Google says it does not use hreflang or the lang attribute to detect a page's language. It uses the content of the page.