The subdomain vs subdirectory question gets a confident answer from Google and a contradictory one from almost everyone who has actually moved a site. Google’s public line, repeated for years by John Mueller, is that the search engine treats blog.example.com and example.com/blog essentially the same, so you should pick whatever is easier to run. Practitioners who have watched traffic climb after folding a subdomain into a subfolder tend to disagree. Both camps are partly right, and the reason they talk past each other is that they’re describing two different layers of the system — one is about how Google can technically handle each setup, the other is about how authority and quality signals actually consolidate. Get that distinction straight and the verdict becomes clear.
What Google Says — and What Migrations Show
Google’s documentation and its search advocates have been consistent: use a subdomain or a subdirectory, it’s your choice, Google’s systems can crawl and index either. That statement is true and also incomplete. “We can handle both” is not the same claim as “both perform identically for you.” The first is about crawler capability; the second is about how site-level signals aggregate. When enough teams report the same directional result after a migration — organic traffic and rankings improving once content moves from a subdomain into a subdirectory on the main domain — the honest read is that Google’s parsing ability and Google’s authority model are two separate things, and the subdomain vs subdirectory decision touches the second one.
The Core Technical Difference
A subdirectory (also called a subfolder) is a path on the same host: everything lives under www.example.com, and /blog, /products, and /support are folders within it. A subdomain is a separate hostname stitched to the same root domain via DNS: blog.example.com, shop.example.com, help.example.com. To a browser and to a user, the difference looks cosmetic. To a search engine it is not, because the host is one of the units Google uses when it groups and evaluates content. Two paths on one host are unambiguously the same site. Two subdomains on one root domain can be treated as the same site — or with some degree of independence — and Google decides which, based on signals rather than a fixed rule.
Why Subdirectories Usually Win: The Consolidation Mechanism
The mechanism behind the practitioner consensus is authority consolidation. Google builds up site-level and host-level quality and topical signals over time. When your blog sits at example.com/blog, every earned link, every internal link, and every trust signal accrues to the same host that runs your money pages. The topical authority you build writing about your niche reinforces the commercial pages one folder over. Internal linking flows equity cleanly because it never crosses a host boundary. With a subdomain, Google may or may not pass all of that through the same evaluation. In the cases where it treats the subdomain with partial independence, the blog has to build its own reputation from a weaker base, and the halo effect on your main pages is muted. Nothing is “penalized” — you simply forfeit compounding you would otherwise get for free.
What Google Genuinely Treats as “the Same”
It’s worth being precise so you don’t over-correct. Google is not applying a penalty to subdomains, and it is not the case that a subdomain “never” inherits root-domain trust — high-authority subdomains rank fine every day. Crawling and indexing are identical in capability: Googlebot fetches, renders, and indexes a subdomain URL with exactly the same pipeline it uses for a subfolder URL. Status codes, canonical tags, hreflang, structured data, and robots directives all behave the same. The difference is not in the plumbing; it’s in how site-scoped signals aggregate and how much of your root domain’s accumulated authority a given subdomain draws on. That is a probabilistic, signal-driven judgment, which is exactly why results vary and why Google can honestly say “the same” while operators honestly report a lift.
The Pattern That Isn’t a Coincidence
Across widely documented migrations — companies moving a blog or resource center from a subdomain onto a subfolder of the primary domain — the recurring outcome is an organic uplift over the following months, often meaningful, sometimes dramatic. No single case study proves causation on its own; hosting changes, redesigns, and content refreshes usually happen at the same time. But the direction is remarkably consistent, and consistency across many independent moves is stronger evidence than any one anecdote. The reasonable inference is not “subdomains are bad” but “consolidating your content under one host removes a variable that can only help or stay neutral.” When the downside is roughly zero and the upside is real, the default choice writes itself.
The Default Recommendation
For the overwhelming majority of sites, put your content in a subdirectory. If you run a business site and you’re deciding where the blog, the knowledge base, the case studies, or the location pages should live, the answer is example.com/blog, not blog.example.com. You keep all authority under one roof, your internal linking compounds, and you never have to wonder whether Google is splitting your reputation across hosts. The subdomain vs subdirectory choice should default to the subfolder unless a specific, concrete reason overrides it — and those reasons do exist.
When a Subdomain Is Actually the Right Call
Subdomains are not a mistake; they’re a tool with legitimate uses. Reach for one when the content is genuinely a different property rather than a section of the same one:
- A distinct application or product — an app dashboard, a status page, or a web app that shares a brand but not a content strategy (
app.example.com,status.example.com). - User-generated or third-party content you want isolated — a hosted-sites platform (think
username.platform.com) where you deliberately want reputational separation so one bad actor can’t drag down the root. - A separate technical stack you can’t cleanly reverse-proxy — a store on a hosted e-commerce platform or a docs system that resists living under a subfolder.
- Regulatory, security, or organizational separation — cookie scoping, isolated infrastructure, or business units that must not share trust.
- Region or language splits where a subdirectory structure genuinely doesn’t fit your architecture (though subdirectories are usually preferred for international SEO too).
The test is simple: if the subdomain content is part of your topical mission and you want it to strengthen your main pages, use a subfolder. If it’s a separate concern you’d be fine having Google evaluate on its own merits, a subdomain is appropriate.
The Reverse Proxy: Having It Both Ways
The most common real objection to subfolders is technical: “our blog runs on a different CMS and can’t live on the main server.” You can still get the SEO benefit of a subdirectory without merging stacks by using a reverse proxy. Your CDN or web server (nginx, or an edge platform) intercepts requests to example.com/blog and quietly fetches them from the separate backend, while the user and Googlebot only ever see the subfolder URL on the primary host. A minimal nginx pattern looks like this:
location /blog/ { proxy_pass https://blog-backend.example.net/; }— plus header and rewrite rules so internal links, canonicals, and assets all resolve under/blog/.
Done correctly, Google sees a single host, authority consolidates, and your marketing team keeps its preferred CMS. Done sloppily, you leak absolute URLs pointing back at the subdomain, create duplicate access paths, or break canonicals — the exact leaks a crawl catches, which is one reason we run a continuous site audit in SEO Rocket rather than a one-off desktop check: proxy misconfigurations reappear whenever the backend changes. This is the “best of both worlds” setup large content teams increasingly adopt precisely because it captures the subdirectory advantage without a platform migration.
Migrating a Subdomain to a Subdirectory Without Losing Rankings
If you decide to consolidate, treat it as a formal site migration, not a casual move. The equity is real and so is the risk of botching the transfer. The sequence that holds up:
- Map every old URL to its new one and implement permanent 301 redirects from each
blog.example.comURL to itsexample.com/blogequivalent — one-to-one, not a blanket redirect to the homepage. - Update internal links to point directly at the new subfolder URLs instead of hopping through redirects, which preserves crawl efficiency.
- Set canonicals to the new URLs and refresh your sitemap so Google discovers the new structure quickly.
- Use Google Search Console — submit the updated sitemap, and watch the Pages and Performance reports as indexing shifts from the old host to the new folder.
- Expect a temporary wobble. Rankings commonly dip for a few weeks while Google reprocesses the move, then recover and usually improve. Judge the outcome over two to three months, not two to three days.
The failure mode is silent redirect chains, orphaned pages, and broken internal links that quietly bleed equity. This is exactly the kind of drift a continuous crawl catches: SEO Rocket’s real-crawler site audit flags redirect chains, broken links, orphaned URLs, and status-code problems after a migration so you fix them while the change is still settling instead of discovering the damage a quarter later. Pair that with rank tracking across the transition, and you can see whether the consolidation actually delivered the lift the theory predicts rather than guessing.
The Site-Reputation-Abuse Wrinkle
There’s a reason the subfolder advantage is real enough that people abuse it. “Site reputation abuse” — parasite SEO — is the tactic of renting a subfolder on a high-authority domain to rank unrelated third-party content on the back of that host’s trust. It only works because subdirectories inherit the host’s accumulated authority so effectively, and Google’s March 2024 policy explicitly targets it. The takeaway for a legitimate operator is twofold: the mechanism confirms that host-level authority is a genuine, transferable asset, and you should never let outsiders publish under your subfolders in a way that could get your whole domain flagged. Consolidate your own content; never rent your host’s reputation to someone else’s.
Frequently Asked Questions
Does Google penalize subdomains for SEO?
No. There is no subdomain penalty. Google crawls and indexes subdomains with the same pipeline it uses for subfolders. The disadvantage, where it exists, is subtler: a subdomain may not inherit the full accumulated authority of the root domain, so content that could compound within one host sometimes has to build its reputation more independently. That’s a lost opportunity, not a punishment.
Should my blog be on a subdomain or a subdirectory?
For almost every business, a subdirectory (example.com/blog). The blog’s topical authority and earned links then reinforce your commercial pages, and internal linking compounds without crossing a host boundary. Only choose a subdomain if the content is genuinely a separate property you’re comfortable having Google evaluate on its own.
Will moving from a subdomain to a subdirectory hurt my rankings?
Short term, expect a brief dip while Google reprocesses the move — assuming you use one-to-one 301 redirects, update internal links, and refresh your sitemap. Medium term, most well-executed migrations recover and then improve, because authority now consolidates under a single host. Monitor the transition for two to three months before judging it.