Subdomain vs Subfolder
Separates content into a distinct hostname (subdomain) or a directory path (subfolder), affecting how authority and crawl signals flow across a site.
If you have ever assumed one structure is universally better, you already know the choice depends on your site's technical needs and content relationships.
Key points
- Use subfolders when content should strengthen the main domain's authority.
- Choose subdomains when you need separate hosting, CMS, or security boundaries.
- Cross-link heavily between a subdomain and the root domain to pass signals.
- Plan redirects and internal links before moving content between structures.
- Google treats both as valid; outcomes depend on implementation, not the hostname alone.
A blog moved from subdomain to subfolder
A retail site ran its blog at blog.example.com for two years. Organic traffic from blog articles was flat, and the main domain's authority barely transferred. After moving the blog to example.com/blog with 301 redirects and updating internal links, the same articles saw a 40% increase in organic visits within three months. The subfolder consolidated authority under the root domain, making it easier for Google to associate the content with the main site.
Three situations where this changes your decision
- Content closely related If the content supports the main site's topic, a subfolder keeps authority consolidated and makes internal linking simpler.
- Technical separation needed When the section runs on different software, hosting, or requires independent security, a subdomain is the practical choice.
- International versions Language or regional variants can use subdomains if operational separation is needed, but subfolders with hreflang tags are often simpler for SEO and international seo.
Three ways it goes wrong
- Defaulting to subdomain Choosing a subdomain by default when the content is tightly related to the main site can dilute authority and reduce ranking potential.
- No cross-linking Leaving a subdomain isolated without strong internal links from the root domain limits how search engines understand the relationship and wastes crawl budget.
- Ignoring redirects Moving content to a different structure without 301 redirects breaks existing links and loses accumulated ranking signals, harming the subdomain vs subdirectory decision.
Common questions
What is a subfolder?
A subfolder is a directory path after the domain, like example.com/blog, that lives under the same site structure.
Does subdomain vs subdirectory affect SEO?
Yes, but not in isolation. Subfolders often consolidate authority better, while subdomains suit technical separation.
How do I create a subfolder?
Add a directory to your web server's file system or use your CMS to create a new page with a path like /new-folder.
Sources
- Google Search Central Official guidance on how Google treats subdomains and subdirectories.
- Moz Case studies and best practices on subdomain vs subfolder SEO.
- Search Engine Journal Analysis of real-world examples and expert opinions on URL structure.