🌍 Multilingual Website SEO (AEO, GEO) Best Practices: Subdirectory Structure & Language Code Standards

🌍 Multilingual Website SEO (AEO, GEO) Best Practices: Subdirectory Structure & Language Code Standards
Photo by Sigmund / Unsplash

In today’s globalized web environment, supporting multilingual websites has become standard for many brands.
However, achieving strong SEO performance across different languages is a key area that many developers and operators often overlook.

This article will systematically cover:

  • Why using subdirectory (subfolder) structures is the SEO-optimal choice;
  • How to correctly set language paths like /en/ and /zh-Hans/;
  • Where to find standard language codes (e.g., es for Spanish).

1. Why Choose a Subdirectory Structure?

In multilingual SEO, URL structure is one of the most important signals for search engines to understand the language version of a site.

Common approaches include:

  • Different top-level domains (ccTLDs): e.g., example.cn, example.fr
  • Subdomains: e.g., zh.example.com
  • Subdirectories (subfolders): e.g., example.com/zh-Hans/
  • URL parameters: e.g., example.com/?lang=zh

Google’s official recommendation:

“Use different URLs to serve content for different language versions.”
Managing Multi-Regional and Multilingual Sites

Among these options, subdirectory/subfolder structures are the most balanced and cost-effective solution because they offer the following advantages:

AdvantageExplanation
🔗 Inherits main domain authorityAll language versions share the main domain, helping to consolidate SEO authority.
⚙️ Easy to maintainNo need to manage multiple domains or additional SSL/multi-site configurations.
🧭 Clear structure/en/, /zh-Hans/ make it obvious for both search engines and users.
📈 Analytics-friendlyYou can compare the performance of different language folders within the same analytics property.
URL parameter-based structures (e.g., ?lang=en) are generally not recommended, as they negatively impact indexing, readability, and link equity.

Assume your main domain is example.com. Recommended multilingual structure:

LanguageExample URLRecommendation
Englishhttps://www.example.com/en/Generic English version
Simplified Chinesehttps://www.example.com/zh-Hans/Explicitly marked as Simplified Chinese (Hans = simplified script)

Notes:

  • Use zh-Hans instead of just zh or zh-CN, as Google’s hreflang supports script codes.
  • For Traditional Chinese, use zh-Hant.
  • Each language version should have fully translated content, including page titles, meta tags, navigation, and slugs.

Example:

  • /en/how-to-use-product/
  • /zh-Hans/如何使用产品/

3. SEO Elements You Must Configure

1️⃣ Hreflang Tags
Tell search engines the language version of each page.

<link rel="alternate" hreflang="en" href="https://www.example.com/en/page/" />
<link rel="alternate" hreflang="zh-Hans" href="https://www.example.com/zh-Hans/page/" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/en/page/" />

Key points:

  • Each version should reference each other (bidirectional tagging).
  • x-default is for users with undefined language preferences.
  • Use BCP 47 language code standards.

2️⃣ HTML lang Attribute
Declare the language in each page’s HTML tag:

<html lang="zh-Hans">

3️⃣ Avoid Automatic Redirects
Do not redirect users based on IP or browser language, as Google cannot access all language versions.

4️⃣ Submit Sitemaps with Language Versions
Include hreflang mappings in your sitemap via Google Search Console to improve indexing accuracy.


4. Standard Sources for Language Codes

A common question in multilingual website development: “What’s the correct language code?”
For example, should Spanish be es or eps? (Correct: es)

StandardDescriptionExample
ISO 639-1Two-letter language codesen (English), es (Spanish), zh (Chinese)
ISO 3166-1 Alpha-2Country/region codesUS (United States), CN (China), ES (Spain)
BCP 47Language + Script + Region combination standardzh-Hans (Simplified Chinese), zh-Hant (Traditional Chinese), es-MX (Mexican Spanish)

Authoritative sources for language codes:

  • W3C official documentation: Language tags in HTML and XML
  • ISO 639-1 list (Wikipedia)
  • Google’s guide: Localized versions of your pages

5. Common Pitfalls & How to Avoid Them

⚠️ ProblemWhy it’s bad
Automatic redirects based on IP or languageSearch engines cannot access other language versions
Using URL parameters to differentiate languagePoor indexing, URLs hard to share
Incomplete hreflang tagsSearch results may display wrong language versions
Partially translated contentMain language detection can fail, affecting rankings
Inconsistent URL structureConfuses users and search engines about language relationships

6. Summary: Multilingual SEO Golden Rules

  • One unique URL per language
    Use clear subdirectory paths (/en/, /zh-Hans/).
  • Correct use of hreflang and lang attributes
    Helps search engines understand language relationships.
  • Consistent content and structure
    Align structure and content depth across languages.
  • Avoid automatic redirects
    Allow free access to each language version for users and search engines.
  • Follow BCP 47 standard codes
    Ensure language tags (e.g., zh-Hans, es-MX) comply with international standards.

📎 Further Reading

  • Google Search Central: Managing Multi-Regional and Multilingual Sites
  • W3C: Language Tags Reference (BCP 47)
  • ISO 639-1 Codes (Wikipedia)
  • Contentful Blog: Multilingual SEO Best Practices

🧭 Conclusion

If you plan for your website to truly “speak multiple languages,” the correct URL structure and language tagging is the first step in SEO.

By choosing subdirectory structures, following standardized language codes, and implementing complete hreflang setups, your site can be clearly visible and perform strongly in global search results.

Read more

CapGo AI的GEO, SEO服务策略与FAQ

CapGo AI的GEO, SEO服务策略与FAQ

CapGo.AI 是业内顶尖的 SEO-GEO 服务商。我们服务过亚洲及美国最顶尖的 AI 和软件公司. 同时,我们也是以下国际顶尖平台的 SEO-GEO 分享嘉宾Ahrefs, HubSpot, 深圳 SEO Conference. 我们在咨询的同时,是用我们自研的 AI 产品 LayerArc 进行驱动的. 1). 整体的 SEO / GEO 策略是什么? 我们的核心逻辑非常简单: SEO + Summarization(AI 总结) = GEO 今天几乎所有 AI 搜索(例如 ChatGPT、Google AI Overview、Perplexity)都有类似流程: 1. 先搜索(Search):从 Google 或其他搜索引擎寻找最相关的网页。 2.

By CapGo AI - by YG
生成式引擎优化(GEO)与AI搜索 - 2026终极指南

生成式引擎优化(GEO)与AI搜索 - 2026终极指南

CapGo.AI团队 2026年6月 目录 * 第一章:AI搜索的爆发式增长 - 新的获客红利 * 第二章:如何在AI搜索中展示品牌——生成式引擎优化(GEO) * 第三章:SEO为GEO的第一步 * 第四章:AI时代利用Programmatic SEO大幅提升自然流量效果 * 第五章:程序化SEO的难点 * 第六章:优化RAG是GEO的核心 * 第七章:程序化GEO是AI时代内容战略的未来 * 第八章:如何查看SEO, GEO效果 第一章:AI搜索的爆发式增长 —— 新的获客红利 生成式引擎优化(Generative Engine Optimization, GEO)正日益凸显其重要性,因为人工智能(AI)驱动的搜索正在改变人们获取和消费信息的方式。越来越多的人开始直接在AI平台上搜索信息、进行产品调研甚至做出购买决策。例如,如ChatGPT的每月活跃用户已突破1.8亿;另外AI搜索平台Perplexity AI的使用量也快速增长,过去一年搜索量同比激增了858%,已达到约千万级别。 2022-2028年全球搜索市场份额与增长趋势(示意) 根据Morn

By CapGo AI - by YG