Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

Subdomain vs Subfolder

A subdomain is a separate hostname before the root domain (like blog.example.com), while a subfolder is a path inside the main site (like example.com/blog).

Beginner3 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Subfolders consolidate authority and simplify internal linking.
  • Subdomains offer technical independence but require extra cross-linking effort.
  • Google treats both equally, but implementation matters more than choice.
  • Always plan redirects and tracking when switching structures.
  • Use the comparison table to match your use case.

Both store content under the same domain, but they behave differently for SEO and operations.

Quick comparison

Subdomain (blog.example.com)Subfolder (example.com/blog)
URL structureSeparate hostnameDirectory path
SEO authorityIndependent domain authorityShares authority with root domain
MaintenanceSeparate hosting, CMS, DNS possibleSame hosting, CMS, easier to unify
Internal linkingRequires cross-linking strategyNatural linking within same site
Crawl budgetSeparate crawl budget per subdomainConsolidated crawl budget
Best forDifferent apps, languages, security zonesBlogs, news, closely related content

Example: Subdomain vs Subfolder in Practice

  • Subdomain: blog.example.com – Often used for a blog that is hosted separately or managed by a different team.
  • Subfolder: example.com/blog – The blog lives inside the main site structure, sharing the same hosting and architecture.
  • Real‑world: Many large sites use subfolders for their blog (e.g., example.com/blog) and subdomains for regional versions (e.g., de.example.com).

When to Choose Which

Choose subfolders when:

  • Content is closely related to the main site and should benefit from its authority.
  • You want easier internal linking and unified site architecture.
  • You have a single CMS and team managing all content.

Choose subdomains when:

  • You need technical separation (different hosting, CMS, or security).
  • Different teams manage content independently.
  • You want to isolate a section (e.g., a separate app or international site).

Shared Pitfalls to Avoid

  • Assuming subdomains are always worse: They can be right for independent projects.
  • Not cross-linking subdomains: Weak internal links hurt user and crawler flow.
  • Moving content without redirects: Always use 301 redirects and update internal links.
  • Ignoring crawl budget: With subdomains, each subdomain gets its own crawl budget; ensure no waste.

Prerequisites Before Deciding

Next steps

FAQ

Does Google prefer subfolders over subdomains?

Google has stated that both are fine, but subfolders often make it easier to consolidate authority and internal links, which can positively impact rankings.

Can I move from subdomain to subfolder without losing SEO?

Yes, with proper 301 redirects, updated internal links, and informing Google via Search Console. Monitor traffic after migration.

Should I use a subdomain for a blog?

Not always. Unless you want separate branding or hosting, a subfolder (example.com/blog) is usually better for SEO because it shares domain authority.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.