How do you set up hreflang and multilingual SEO for a website?

Updated · 5 min read

Choose a URL structure for each language

Search engines need a separate URL for each language version, because one page cannot quietly switch language for every reader. The three common patterns are language folders inside one domain, subdomains, and separate country-code domains. Language folders are the simplest to keep under one domain, while separate domains suit businesses that need a distinct local presence.

Pick one pattern and keep it for every page. Mixing patterns, such as a folder for one language and a subdomain for another, makes the annotations harder to maintain and the site harder for search engines to understand.

Use correct language and region codes

A hreflang value combines a language code in lower case with an optional region code in capitals. Traditional Chinese for Taiwan uses zh-TW, Traditional Chinese for Hong Kong uses zh-HK, and Simplified Chinese for mainland China uses zh-CN. Use the bare language code, such as en, when the page is meant for every speaker of that language.

Add x-default to the page a visitor sees when no listed language matches. Check the current Google Search Central documentation for the accepted formats, since small errors in a code can cause a tag to be ignored without any warning.

Add the tags to the page or to the sitemap

You can declare the alternate versions in the head of each page or in the XML sitemap. A sitemap is easier to maintain on a large site, while page tags are easier to see when you are checking one page. Use one method consistently, and do not mix conflicting lists for the same URL.

  • In the page head, add one link element for each language version, including a link to the page itself.
  • In the XML sitemap, list the alternates for each URL in the same group.
  • Keep the list identical from every version, so the pairs match.

Translate titles, descriptions and structured data

Hreflang tells search engines which version to show, but the title and description are what readers see in the results. Translate them as complete sentences rather than word for word, and use the terms that searchers in each language actually type. A literal translation of an English title often misses the phrase that people search for.

Structured data, such as product names, organization details and business hours, should also be localized and checked for each market. A correct English description with incorrect Traditional Chinese product names will confuse both readers and search engines.

Language targeting versus region targeting

A language-only code serves a version to every speaker of that language. A region code narrows the version to readers in one country. Use a region only when the content really differs by country, such as local shipping, tax wording or legal terms.

Traditional and Simplified Chinese show why the distinction matters. They are different writing systems, not accents of one language, and readers in Taiwan and mainland China expect different vocabulary. Separate versions with their own codes serve both groups better than one shared Chinese page.

Common hreflang mistakes

Most hreflang problems come from a small set of errors. They are easy to introduce during a migration and hard to notice in a browser, because each page looks correct on its own.

  • Missing return links, so one page points to another that does not point back.
  • Invalid or swapped codes, such as a region code used where a language code is needed.
  • Pointing hreflang at redirected or non-canonical URLs instead of the final address.
  • Automatic language redirects that send every visitor, including crawlers, to one language.
  • Listing a page in another language before its translation is finished.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei that builds web apps and AI CRM systems. We write multilingual content in English, Traditional Chinese and Simplified Chinese, so the site structure, the translated pages and the metadata can be planned together rather than patched in afterwards.

Our work starts with a scope step of about one week at a fixed price, which ends in a written plan and a firm quote. The build follows in weekly releases, and a monthly run plan keeps the site working and up to date as you add languages.

Questions

Does hreflang improve rankings by itself?
No. Hreflang helps search engines show the right language or region version to each reader, and it prevents the versions from competing with each other. Rankings still depend on content quality, links and technical health. Treat hreflang as one part of a multilingual setup, and read the current Google Search Central guidance on how it is used.
Should I use language folders or separate domains?
Language folders keep every language under one domain, which usually makes authority easier to build and maintain. Separate domains can suit a business that needs a strong local presence in each country, but they cost more to run and promote. Choose the pattern your team can keep consistent for years.
Do I need hreflang if my site has only two languages?
Yes, if both languages have pages a reader could land on. Even two versions benefit from correct pairs, because otherwise search engines have to guess which one to show. Start with the pages that matter most, such as the home page and your main product pages.
How do I test hreflang before launch?
Crawl the site with a tool that reports hreflang, and check that every version has return links and valid codes. Then open each language version in a browser and confirm that the page language and content match. Fix errors on a staging copy first, so live pages are not left half set up.
Can automatic language redirects hurt SEO?
They can. If a visitor or a crawler is sent to one language based on location or browser settings, the other versions may never be indexed. Offer a visible language switcher and let each URL load directly, so every version can be reached without relying on redirects.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutHow do you set up hreflang and multilingual SEO for a website?