Subdomain vs subdirectory architecture diagram with link-equity flow
Technical SEO

Subdomains vs Subdirectories for SEO (2026)

The honest engineering answer to the oldest argument in technical SEO — when a subdomain helps you, when it quietly costs you authority, and how to migrate between them without losing rankings.

11 min read
·
1,620 words
·
Updated April 26, 2026
·By Martin Vassilev, Toronto SEO

Subdomain vs subdirectory: the actual difference

A subdomain is a separate hostname that shares your registered domain — blog.example.com is a subdomain of example.com. A subdirectory is a path on the same hostname — example.com/blog/. From a DNS and serving perspective they are completely different: subdomains have their own DNS records, can be hosted on entirely separate infrastructure, and can sit behind different TLS certificates, CDNs, and origin servers.

From a search-engine perspective the distinction is more nuanced and has shifted over the years. The current (2026) reality is that subdomains are related but not identical properties. Some signals aggregate across them; many do not. The argument is not whether one is universally better — it is which signal-aggregation behaviour you want for the specific content you are publishing.

How Google actually treats subdomains in 2026

Google has been publicly consistent for over a decade: both architectures can rank, and the choice should be driven by user and engineering needs, not perceived ranking advantage. That public position is true. It is also incomplete. In practice, here is what we observe in client work:

SignalSame hostname (subdirectory)Different hostname (subdomain)
Internal link equityFlows freely across the hostnameTreated as external links between the two hosts
Topical authority assignmentAggregated to the parent hostAssessed per host, with partial transfer
E-E-A-T signal carryoverStrong — same publisher entity by defaultInferred — requires explicit signals (sameAs, publisher schema)
Search ConsoleSingle property covers everythingEach host needs its own property (or use Domain property)
Structured data graphSingle Organization graph appliesEach host needs its own publisher graph
Crawl budgetShared with the rest of the hostAllocated independently per host

The single biggest practical difference is the link-graph one. PageRank-style equity does not flow between subdomains the way it flows within a single hostname. For a marketing site whose primary goal is to compound authority around a small set of commercial pages, that matters a great deal.

In every site migration I have run from a subdomain blog to a /blog/ subdirectory, the parent site has gained ranking strength on its commercial pages within the recovery window. Not because subdomains are penalised — because the link equity finally aggregates.

— Martin Vassilev, Founder, Toronto SEO

When a subdomain is the right call

Subdomains exist for good reasons. They are the right architecture when one or more of the following is true:

  • Genuinely separate audience
    Developers consume docs.example.com; consumers consume www.example.com. Treating them as separate properties matches user intent and lets each be optimised independently.
  • Genuinely separate infrastructure
    If your help centre runs on Zendesk and your marketing site runs on Next.js, putting help on a subdomain is operationally simpler than reverse-proxying through the marketing host. The SEO cost can be paid down with internal linking.
  • Language or country targeting
    fr.example.com / en.example.com or ca.example.com / us.example.com are officially supported hreflang patterns. Subdomains are appropriate here.
  • Commerce on a different platform
    shop.example.com on Shopify, www.example.com on a custom site. Common, sensible, no realistic alternative.
  • Brand separation
    A separately operated sub-brand with its own editorial voice and link profile that should not be conflated with the parent.
  • Compliance or security boundaries
    Customer portals, banking flows, or anything where you want a hard isolation boundary between marketing and product.

When a subdirectory is the right call

For most marketing-site decisions, the subdirectory is the safer default. It is right when you want every page you publish to compound authority on a single host. Specifically:

Editorial blog supporting commercial pages

If the blog exists to rank for top-of-funnel queries that funnel users to your service pages, a subdirectory is almost always correct.

Resource centres, glossaries, and answer libraries

These are link-magnets whose authority you want flowing back to the host. Subdirectories make that automatic.

Programmatic SEO at scale

Hundreds or thousands of templated pages benefit from sharing the host's authority budget rather than starting from zero on a fresh subdomain.

Case studies and customer stories

Same publisher entity, same audience, same goal. No reason to fragment.

Most SaaS marketing sites

If your marketing pages and your blog have the same audience, same brand, and same goal, a subdirectory is the right call almost every time.

Migrating between the two without losing rankings

The most common engagement we run in this category is moving a blog from a subdomain to a subdirectory using a reverse proxy, where the blog continues to be served from its original CMS but is exposed at example.com/blog/. The migration is straightforward in principle and unforgiving in execution.

  • Map every URL, in advance, with no gaps
    Every blog.example.com URL needs an exact /blog/ counterpart. Programmatic mapping plus manual review of the top 100 by traffic.
  • 301 redirect at the edge
    Implement permanent redirects from the old subdomain to the new path before the new path is publicly linked. The redirect must be a 301, not a 302 or a JavaScript redirect.
  • Update internal links sitewide
    Replace every internal link that points to the old subdomain. Do not rely on the redirect chain to do this work — it slows crawling and dilutes equity.
  • Resubmit a fresh sitemap
    Submit a sitemap of the new URLs in Search Console the day the redirects go live. Keep the old subdomain's sitemap submitted for 30 days so Google can discover the redirect chain.
  • Validate canonicals on the new path
    The new /blog/ pages must self-canonical. The old subdomain pages must redirect, not be left to canonical to the new ones — canonicals are weaker than 301s.
  • Monitor for 90 days
    Indexation, impressions, average position. Expect a 4 to 8 week trough; investigate any losses still present at week 12.

The single most common cause of ranking loss in these migrations is incomplete redirect mapping — pages that existed on the subdomain but were not given a redirect target. Run a full crawl of the subdomain before you start, not just an export from the CMS, because content can exist outside the CMS that the CMS has no record of.

Anti-patterns we still see in 2026

Spinning up a subdomain to escape a manual penalty

Manual penalties attach to the publisher and the link patterns. A new subdomain inherits both unless you change everything else too. Almost always a wasted move.

Subdomain blog with weekly thin content

Worst of both worlds — you neither concentrate authority on the parent host, nor build enough authority on the subdomain to compete.

Multiple subdomains targeting the same intent

shop.example.com, store.example.com, and buy.example.com all selling the same thing. Pure dilution. Pick one.

Cross-host canonical chains

Page A canonicalises to page B which redirects to page C which canonicalises to page D. Google honours the simplest signal it finds; chains are routinely broken.

Subdomain without its own publisher schema

If you operate a subdomain as a separate property, give it its own Organization graph. Otherwise you confuse Google about who the publisher actually is.

Treating an exact-match subdomain as a strategy

best-toronto-seo-tips.example.com helps no one. The keyword in the hostname is not a meaningful ranking signal.

The honest summary

Subdomains are not bad for SEO. They are an architectural choice with consequences. For most marketing sites, subdirectories concentrate authority more efficiently and are the safer default. For genuinely separate properties, subdomains are correct. The mistake to avoid is the unconsidered default — picking one because your CMS made the choice easy, and discovering twelve months later that you have been splitting equity for no reason. Make the decision deliberately, document why, and revisit it the next time the architecture is touched.

Frequently Asked Questions

The questions we get asked at the start of nearly every site-architecture engagement.

Architecture review

Not sure whether your subdomain is helping or hurting?

We do site-architecture reviews as a fixed-scope engagement — link-graph analysis, topical authority assessment, and a migration plan if one is warranted.