Free auditStart free
GlossaryGlossary · Crawling and indexing

Subdomain vs subdirectory

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 withChatGPTClaudePerplexityGoogleAI Mode
02Checklist

Pick by team boundaries and user expectations

  1. 01Use a subdirectory when the content belongs to the same product, brand, publishing workflow, and technical stack.
  2. 02Use a subdomain when it needs independent hosting, application behavior, access controls, or a clear organizational boundary.
  3. 03For 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. 04Check adjacent Google Search 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.
03How 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 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, canonicals, sitemap entries, analytics referrals, and Search Console properties to match the final host and paths.

  4. 04

    Test and monitor

    Check 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. 01SEO Starter Guide — Google Search Centraldevelopers.google.com · checked 2026-10-24
  2. 02FAQ: Google Search crawling and indexingdevelopers.google.com · checked 2026-10-24
  3. 03Site names in Google Searchdevelopers.google.com · checked 2026-10-24
  4. 04Verify your site ownership — Search Console Helpsupport.google.com · checked 2026-10-24
Questions

Asked a lot.

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

01Does 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.

02Is 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.

03Does 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.

Free · 2 minutes

Know the term. Now check your site.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly