🌍 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

GEO (AI 搜索) 在海外的市场潜力

GEO (AI 搜索) 在海外的市场潜力

内容概览: 1. 《华尔街日报》:GEO 正在成为一个超千亿美元市场。 据《华尔街日报》引用数据,全球 GEO (AEO) 服务市场将从 2025 年的 814 亿美元增长至 2030 年的 1,710 亿美元。 2. AI 搜索用户高速增长。 ChatGPT 已拥有超过 10 亿月活跃用户(MAU),越来越多用户开始用 AI 搜索信息、比较产品和做购买决策,为 GEO 创造了庞大的市场基础。 3. AI 搜索将成为新的默认搜索方式。 AI 能直接完成信息整合、产品比较和个性化推荐,比传统搜索更快、更高效,因此将逐渐成为人们搜索生活、工作和消费信息的主要入口。 4. AI Agent 将进一步扩大市场规模。

By CapGo AI - by YG
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,GEO流量. 我们也提供外链/PR等增值服务. 方法论: 我们的策略主要包括: * 覆盖 + 优化 = 流量 * 覆盖是让大家搜什么关键问法、关键词都能搜到你 * 优化根据数据, 是让网页持续地获取更多流量。 * 前三个月, 每个月通常生成约 60–80 个高质量网页,并扩展为 5 种语言

By CapGo AI - by YG