# Subdomain vs subdirectory

> Compare subdomains and subdirectories for SEO, ownership, deployment, analytics, and migrations. Google reports no ranking preference.

Canonical: https://scaplet.com/glossary/subdomain-vs-subdirectory

Glossary Glossary · Crawling and indexing

Compare subdomains and subdirectories for SEO, ownership, deployment, analytics, and migrations. Google reports no ranking preference.

3 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

A subdomain puts content before the main domain, like `help.example.com`; a subdirectory puts it in the path, like `example.com/help/`. Google says it has no preference for indexing or ranking between them. Choose based on how your team needs to organize, build, and maintain the site, then keep URLs and internal links consistent.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsubdomain-vs-subdirectory%20(%22Subdomain%20vs%20subdirectory%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsubdomain-vs-subdirectory%20(%22Subdomain%20vs%20subdirectory%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsubdomain-vs-subdirectory%20(%22Subdomain%20vs%20subdirectory%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fsubdomain-vs-subdirectory%20(%22Subdomain%20vs%20subdirectory%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [What changes between the two 01](#what-changes-between-the-two)
2. [Pick by team boundaries and user expectations 02](#pick-by-team-boundaries-and-user-expectations)
3. [Before you launch or migrate 03](#before-you-launch-or-migrate)

_01_At a glance

## What changes between the two

A subdomain is a separate hostname under your domain: `help.example.com`. A subdirectory is a path on the same hostname: `example.com/help/`. The visible URL is different, but Google says neither format has an indexing or ranking advantage by itself.

Consideration

### Example

Subdomain

`docs.example.com`

Subdirectory

`example.com/docs/`

Consideration

### Useful when

Subdomain

A product, region, or team needs its own hostname or deployment boundary

Subdirectory

Content shares the main site's stack, navigation, and release process

Consideration

### Typical work

Subdomain

DNS, TLS, routing, analytics and [Search Console](/glossary/google-search-console) setup across hosts

Subdirectory

Path routing, redirects, canonical and navigation rules within the host

Consideration

### Google's ranking preference

Subdomain

None (per Google)

Subdirectory

None (per Google)

Google's [SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide) says it might be easier to manage a site segmented by subdirectories, but other times it might make sense to partition topics into subdomains, depending on your site's topic or industry. Google's crawling and indexing FAQ says to choose whatever is easiest for you to organize and manage, and that from an indexing and ranking perspective Google doesn't have a preference. That is an operations decision, not a ranking trick.

_02_Checklist

## Pick by team boundaries and user expectations

1. 01 Use a subdirectory when the content belongs to the same product, brand, publishing workflow, and technical stack.
2. 02 Use a subdomain when it needs independent hosting, application behavior, access controls, or a clear organizational boundary.
3. 03 For country or language versions, pick one consistent URL pattern. Google's guidance gives no ranking preference between a subdomain and a subdirectory for this.
4. 04 Check adjacent Google [Search features](/glossary/serp-features) before deciding on product boundaries: for example, site names can be defined at domain or subdomain level, but not subdirectory level. That feature rule does not imply a ranking advantage.

**Avoid moving for a supposed SEO boost**Google says it has no ranking preference between the two, so a move alone is not a documented route to better rankings. A migration can introduce [broken links](/glossary/broken-links), redirect mistakes, canonical conflicts, and reporting changes. Move when it solves a real product or operating problem.

_03_How it works

## Before you launch or migrate

If the problem is simply that your URLs are hard to understand or crawl, improve the [URL structure](/glossary/url-structure) before splitting the site across hosts.

1. 01

### Name the owner

Decide who owns publishing, deployment, DNS, redirects, security, and incident response for this section.
2. 02

### Map the URLs

List old and new URLs, including trailing slashes, language paths, and page templates. Keep equivalent pages one-to-one.
3. 03

### Connect discovery signals

Update [internal links](/glossary/internal-links), canonicals, sitemap entries, analytics referrals, and Search Console properties to match the final host and paths.
4. 04

### Test and monitor

Check [redirect chains](/seo-issues/redirect-chains), robots access, page responses, analytics attribution, and Search Console indexing after launch. Compare trends by page and query over time.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [SEO Starter Guide — Google Search Central](https://developers.google.com/search/docs/fundamentals/seo-starter-guide) developers.google.com · checked 2026-10-24
2. 02 [FAQ: Google Search crawling and indexing](https://developers.google.com/search/help/crawling-index-faq) developers.google.com · checked 2026-10-24
3. 03 [Site names in Google Search](https://developers.google.com/search/docs/appearance/site-names) developers.google.com · checked 2026-10-24
4. 04 [Verify your site ownership — Search Console Help](https://support.google.com/webmasters/answer/9008080) support.google.com · checked 2026-10-24

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does Google rank subdomains separately?

Google's crawling and indexing FAQ says that from an indexing and ranking perspective Google doesn't have a preference between subfolders and subdomains. Do not infer a ranking boost from either setup.

_02_ Is a subdirectory better for SEO?

Google says it has no preference from an indexing and ranking perspective. A subdirectory may be simpler if the same team and application own the content, but choose the setup that is easiest to organize and maintain.

_03_ Does a subdomain need separate Search Console verification?

A Domain property in Search Console includes subdomains and protocols after domain verification. URL-prefix properties can be scoped to a particular prefix. Verify the properties you need to inspect and keep reporting scope in mind.

## Keep learning

[All glossary](/glossary)

[Learn URL structure Crawling and indexing](/glossary/url-structure) [Related Internal links On-page SEO](/glossary/internal-links) [Read next www vs non-www Crawling and indexing](/glossary/www-vs-non-www) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Structured data](/glossary/structured-data) [Structured outputs](/glossary/structured-outputs) [SVG](/glossary/svg) [Synthetic monitoring](/glossary/synthetic-monitoring)

More in Crawling and indexing
[Orphan page](/glossary/orphan-page) [Page indexing report](/glossary/page-indexing-report) [Pagination](/glossary/pagination) [Removals tool (Search Console)](/glossary/removals-tool) [Rendered HTML](/glossary/rendered-html) [Rendering](/glossary/rendering) [Robots meta tag](/glossary/robots-meta-tag) [Server-side rendering](/glossary/server-side-rendering) [Sitemaps report](/glossary/sitemaps-report) [SPA SEO](/glossary/spa-seo) [SSL certificate](/glossary/ssl-certificate) [SSR vs CSR](/glossary/ssr-vs-csr) [Subdomain vs subdirectory](/glossary/subdomain-vs-subdirectory) [Trailing slash in URLs](/glossary/trailing-slash) [unavailable_after](/glossary/unavailable-after) [URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL parameters](/glossary/url-parameters) [URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap) [Web crawler](/glossary/web-crawler) [Web scraping](/glossary/web-scraping) [www vs non-www](/glossary/www-vs-non-www)

Terms on this page
[Google Search Console](/glossary/google-search-console) [SERP features](/glossary/serp-features) [Broken links](/glossary/broken-links) [Internal links](/glossary/internal-links) [URL structure](/glossary/url-structure)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
