Creative agency glossarySEO and Analytics

Subfolder

A subfolder is a directory within a website's URL structure, such as example.com/blog/, used to organize sections of a site under the same domain.

What is a subfolder?

A subfolder, also called a subdirectory, is a path segment in a URL that groups pages under a section of a site: example.com/blog/, example.com/glossary/, example.com/products/. It is the web's equivalent of a folder on a hard drive, and most sites use several levels of them to organize content: a glossary at /glossary/, a term inside it at /glossary/subfolder/. The alternative structure is the subdomain, where the section gets its own prefix on the domain, as in blog.example.com.

The distinction matters because search engines treat the two differently. A subfolder is part of the main domain, and the authority the domain has earned flows to everything inside it. A subdomain is treated, to a significant degree, as a separate site that has to earn its own standing. That is why the question of whether a blog, a store or a help center should live at /blog/ or blog.example.com is one of the most argued points in technical SEO, and why the answer, for most businesses, is the subfolder.

Why it matters

Why a subfolder matters

A site's authority is its most valuable asset in search, and subfolders keep that asset in one place. Every link earned by an article at /blog/ strengthens the domain that the product pages also live on; every link earned by a product page strengthens the blog. Split the same content across subdomains and the links split with it, so each part of the site ranks as if it were a smaller company. Businesses that have moved content from a subdomain into a subfolder have often reported measurable gains in organic traffic for exactly this reason.

Subfolders also shape how people and search engines understand a site. A clean structure (/our-creations/, /our-friends/, /glossary/) tells a visitor where they are and tells a crawler how the content is related. URLs that read like a sentence are easier to share, easier to remember and easier to trust, and the breadcrumbs that search engines show beneath a result are built from them. Analytics benefits as well: a well structured site can be reported by section in a single filter, so a team can see at a glance how the glossary, the case studies and the service pages are each performing.

In practice

How a subfolder works in practice

  1. 01

    Subfolders are defined by the site's architecture and implemented by the content management system or the web server. A platform such as WordPress creates them from its permalink settings and its page hierarchy, so that a parent page produces a folder and child pages sit inside it. On a custom site they are routing rules. In either case the design decision comes first: a map of the site's sections, with each major type of content given a short, descriptive folder name in plain language, and a limit on depth, since a URL five folders deep is hard to read and signals a page that is buried.

  2. 02

    The practical rules are simple. Use lowercase words separated by hyphens. Keep folder names stable, because changing them means redirecting every page inside. Make each folder meaningful enough that a reader could guess what lives in it. And when a section genuinely needs to be a separate system (a store on another platform, a community forum, a regional site), consider a reverse proxy that serves it at a subfolder before settling for a subdomain.

Watch out

What people get wrong about subfolders

Choosing a subdomain for convenience. Blog platforms, help desk tools and e-commerce systems often default to a subdomain because it is easier to set up, and the site pays for that convenience in split authority for years. The second mistake is restructuring folders casually. Every URL change needs a redirect, and a site that renames its sections every redesign leaves a trail of broken links and lost rankings.

The third is depth for its own sake. Nesting every page five levels down to mirror an org chart produces URLs nobody can read and crawlers treat as unimportant. The fourth is inconsistency: a site with /blog/, /Blog/ and /news/ all serving articles has three sections where it needs one.

Questions

People also ask

What is the difference between a subfolder and a subdomain?

A subfolder is a path on the main domain (example.com/blog/) and shares its authority. A subdomain is a prefix on the domain (blog.example.com) and is treated largely as a separate site. For search, the subfolder is almost always the stronger choice.

Is a subfolder better for SEO than a subdomain?

In most cases, yes. Content in a subfolder inherits and contributes to the main domain's authority, while a subdomain has to build its own. Subdomains make sense only when the content is genuinely a separate property or must run on infrastructure that cannot be served from the main site.

How deep should subfolders go?

As shallow as the content allows. Two or three levels (/section/page/ or /section/subsection/page/) is typical; deeper structures are harder to read and crawl. Depth should reflect how the content is organized, not the company's org chart.

Can you move content from a subdomain to a subfolder?

Yes, and many sites have done it for the search benefit. It requires a redirect for every URL, updated internal links and sitemaps, and a period of monitoring while rankings settle. Plan it as a migration, not a quick change.

Next to it in the glossary

  1. 200 (OK) Response CodeA 200 OK response code is the server's confirmation that a request succeeded and the page was delivered as asked.
  2. 301 RedirectA 301 redirect is a permanent instruction that sends browsers and search engines from an old URL to a new one, carrying the old page's ranking signals with it.
  3. 302 RedirectA 302 redirect is a temporary instruction that sends visitors from one URL to another while telling search engines the original address will return.
  4. 304 Not ModifiedA 304 Not Modified response tells a browser or a crawler that the page has not changed since it was last fetched, so the cached copy can be used instead.
  5. 307 Temporary RedirectA 307 Temporary Redirect sends a visitor to a different URL for now, while guaranteeing that the request is repeated exactly as it was made.
  6. 403 ForbiddenA 403 Forbidden error means the server understood the request but refuses to serve the page, usually because the visitor does not have permission to see it.

Every SEO and Analytics term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage