Growth Marketing Glossary

Subdirectory

sub·di·rec·to·rynoun

A folder in your URL. A subdirectory nests content under the main domain, like example.com/guides/, so a section lives inside the site rather than on a subdomain beside it.

example.comadd a folder pathexample.com/blog/
Schematic — content nested in a folder under the root domain
Term
Subdirectory
Is
A folder in a site's URL path
Looks like
example.com/blog/
Contrasts with
Subdomain (blog.example.com)

Parts of speech & senses

subdirectory · noun
  1. A subdirectory is a folder within a website's URL path — such as example.com/blog/ — used to organize sections of a site inside a single domain rather than on a separate subdomain. "They moved the shop into a subdirectory."

What a subdirectory is

A subdirectory, also called a subfolder, is a folder that lives inside a website's URL path, appearing after the domain and a slash — for example, the /blog/ in example.com/blog/ or the /help/guides/ in example.com/help/guides/. It organizes content into named sections within one domain, the same way folders organize files on a computer. The homepage sits at the root (example.com/), and each subdirectory branches off it, so a store, a blog, a help center, and a careers section can each occupy their own path while all remaining part of the same site. Subdirectories can nest inside one another to any depth, which lets a large site build a clear, hierarchical structure. Every page still belongs to the single root domain, which is the defining feature that separates a subdirectory from a subdomain.

Subdirectories matter because they shape both how humans navigate a site and how search engines understand it. A logical folder structure — example.com/services/seo/ under example.com/services/ — signals the relationship between pages, groups related content, and makes URLs readable and predictable. For SEO, the widely held view is that a subdirectory keeps a section firmly inside the main domain, so the authority and links the whole domain earns tend to support the pages in that folder. That is the practical reason many teams choose a subdirectory over a subdomain for content like a blog or resource hub. The structure is not just cosmetic: it influences internal linking, crawl paths, breadcrumb trails, and how neatly a site's information architecture maps onto its URLs.

Subdirectory versus subdomain

The cousin most often confused with a subdirectory is the subdomain, and the difference sits in the URL. A subdirectory is a folder in the path after the domain — example.com/blog/ — so the content lives inside the root domain. A subdomain is a prefix before the domain — blog.example.com — which search engines and browsers treat as a distinct host, effectively a related but separate site under the same registered domain. That distinction has consequences. Content in a subdirectory generally shares the momentum of the whole domain most directly, because it is unambiguously part of it. A subdomain can be treated more independently, which is sometimes what you want (a separate app, a store on a different platform, a region with its own team) and sometimes a disadvantage (a blog that would benefit from riding the main domain's authority).

Choosing between them is a real decision, not a formality. Many SEO practitioners favor a subdirectory for content meant to strengthen the core site — a blog, guides, a knowledge base — precisely because it stays inside the domain. A subdomain earns its place when a section is genuinely separate in technology, ownership, or purpose, or must run on a platform that cannot live in the main site's path. Both are valid; the mistake is choosing blindly. Do not confuse a subdirectory with a subdomain when planning structure, and do not confuse either with a completely separate domain (a different registered name entirely), which shares none of the parent's authority. The URL tells you which one you are looking at — a slash after the domain means a subdirectory, a dot before it means a subdomain.

Using subdirectories well

Using subdirectories well means designing a folder structure that mirrors how the site is actually organized — shallow enough to stay readable, deep enough to group related content, with clear, human-readable folder names (example.com/support/billing/ beats example.com/s/b/). It means keeping URLs stable, because a subdirectory path baked into links and search results is costly to change; when you must move a section, redirect the old paths. It means choosing a subdirectory over a subdomain when the content should reinforce the main domain, and reaching for a subdomain only when separation is genuinely warranted. Good structure supports navigation, breadcrumbs, internal linking, and crawlability all at once, so the effort spent on a sensible folder hierarchy pays back across the whole site.

The failures are letting the folder structure sprawl into deep, cryptic paths that neither users nor search engines can parse; scattering related content across inconsistent subdirectories; splitting a blog or resource hub onto a subdomain when a subdirectory would have kept it inside the domain's authority; and changing subdirectory paths without redirects, which breaks links and loses accumulated value. The discipline is to treat the subdirectory structure as information architecture expressed in URLs — organized, stable, and readable — reserving subdomains for genuinely separate sections, and to remember that where content sits in the path is not a cosmetic detail but a signal of how the site is built and how its parts relate.

Worked example. A software company keeps its documentation on docs.company.com, a subdomain, and its blog struggles to rank despite good content. Reviewing the structure, the team moves the blog into a subdirectory at company.com/blog/ so it sits inside the main domain rather than beside it, and keeps the docs where a separate subdomain genuinely fits their tooling. Over time the blog benefits from being part of the core site's structure, and the URLs read clearly. The lesson: a subdirectory is a folder in the URL path that keeps content inside the root domain, distinct from a subdomain, which sits before the domain as a separate host — and the choice between them shapes structure and SEO. (Illustrative; RGM analysis.)
Failure modes to watch. Building deep, cryptic folder paths that neither users nor search engines can parse; scattering related content across inconsistent subdirectories; splitting content onto a subdomain when a subdirectory would keep it inside the domain's authority; and changing subdirectory paths without redirects, which breaks links.

Synonyms & antonyms

Synonyms

subfolderURL folderpath segment

Antonyms

subdomainseparate domain

Origin & history

Subdirectory — a folder in a website's URL path such as example.com/blog/ — organizes content inside a single domain, distinct from a subdomain that sits before the domain as a separate host.

Etymology: source.

Usage trends

Search interest for this term over the last five years:

View interest-over-time on Google Trends →

Common questions

What is a subdirectory?
A folder in a website's URL path, such as example.com/blog/, used to organize a section of content inside a single domain. It appears after the domain and a slash, and every page in it belongs to the root domain.
What is the difference between a subdirectory and a subdomain?
A subdirectory is a folder in the path (example.com/blog/) that stays inside the root domain. A subdomain is a prefix before the domain (blog.example.com) that search engines treat as a distinct, related host.
Is a subdirectory better than a subdomain for SEO?
Often, for content meant to strengthen the main site — a subdirectory keeps that section inside the domain's authority. A subdomain suits genuinely separate sections in technology, ownership, or purpose. Choose deliberately, not by default.

Resources & people to follow

Curated, non-competitor resources verified per term.

Related training

Disciplines

Areas of marketing where subdirectory is a core concern:

Sources

  1. trendsGoogle Trends — "subdirectory"