No products in the cart.
A subdirectory groups website content under a shared URL path, such as /blog/. When planning a website or adding pages, you’ll need to decide which content belongs together and how those sections fit into your URLs.
The decision depends on the content you’re organizing and how your website is built. A few related service pages may benefit from a shared section, while a single contact page can sit directly beneath the domain. This article covers the basics of subdirectories and how to build your site with strong information architecture for SEO.
What Is a Subdirectory?
A subdirectory, also called a subfolder, is a folder within another directory. On a website, the term commonly describes a section of the URL that groups related pages.
For example, look at this address:
example.com/blog/website-maintenance/
Here, example.com is the domain, /blog/ is the subdirectory, and website-maintenance identifies the individual article. Other articles can share the same /blog/ path while having their own page names.
Subdirectories can also be nested. In example.com/resources/guides/website-planning/, /guides/ sits within /resources/, followed by the individual guide’s name.
These paths do not necessarily represent physical folders on the server. A website’s publishing system can generate addresses that follow this structure without storing each page in a matching folder.
Subdirectory vs. Subdomain

A subdirectory appears after the domain name. A subdomain adds a name before it, as these two blog addresses show.
| Structure | Example | Where “blog” appears |
|---|---|---|
| Subdirectory | example.com/blog/ | After the domain |
| Subdomain | blog.example.com | Before the domain |
Either address could host a blog. A subdirectory often uses the main website’s publishing system, while a subdomain can point to a separate hosting service or application. The address alone does not determine the design, navigation, or who manages the content.
For example, a consultant might publish articles at /blog/ using the same system as the rest of the website. Their client portal could run on separate software at portal.example.com.
How Subdirectories Support SEO
Adding /blog/ or /services/ to a URL does not automatically improve a page’s rankings. Subdirectories provide a consistent way to group content, while navigation and internal links help visitors and search engines reach it.

A landscaping company, for example, might group its service pages under /services/. A services overview page can link to lawn care, garden design, and seasonal cleanup, giving visitors a place to compare those services and explore each one. Sharing a folder path does not create those links; they need to be part of the website.
That grouping is also useful when reviewing search performance. Filtering for URLs that begin with /services/ lets you examine service pages separately from articles. You can then compare individual pages to see which attract search traffic and which need a closer review.
When to Use a Subdirectory
Use a subdirectory when a group of pages belongs in a shared section of your website. Common examples include articles, services, case studies, and resources. Choose a section name that describes the content and will still make sense as you add pages.

A business with one service page may be fine with /bookkeeping/. A firm offering several services may prefer /services/bookkeeping/, with other services following the same pattern. The extra layer helps when a category is worth grouping pages under.
If you’re adding a course platform, booking system, or customer portal, check which address formats the software supports. A subdomain may be straightforward to connect, while using a subdirectory may require additional development.
For an existing website, keep working URLs unless changing them solves a specific problem. If visitors struggle to find a page, first check the navigation and links leading to it. Renaming its address may not resolve the issue.
Common Subdirectory Mistakes

When planning URLs, check whether each folder adds useful meaning and whether existing pages need to move. Also review the links leading to those pages, since URL structure and navigation are separate parts of the website.
Adding folders that serve no purpose
A URL such as /services/marketing/seo/local-seo/packages/ contains several overlapping categories. If the page describes a local SEO package, some of those layers may add little information.
For new pages, choose descriptive folder names and use them consistently. Your URLs do not need to reproduce every department or category in your business.
Moving pages without redirecting their old URLs
Moving /about/ to /company/about/ changes the page’s address. Existing bookmarks and links will still point to /about/.
Set up a permanent redirect from the old address to the new one, and update links within your website. Test the old URL afterward to confirm that it reaches the correct page.
Confusing folder depth with navigation depth
The number of folders in a URL does not tell you how many clicks it takes to reach a page. A page at /services/design/branding/ might be linked directly from the homepage, while /branding/ might have no internal links pointing to it.
Check how visitors actually reach important pages. Shortening an address will not fix a missing navigation link.
Frequently Asked Questions
Here are answers to common questions about folder names, page addresses, and access to private content.
Yes. The terms are interchangeable. On a website, they commonly describe a shared URL path such as /blog/, even when no matching physical folder exists on the server.
A slug is the readable name used to identify a page or post in its URL. In example.com/blog/website-maintenance/, /blog/ groups the articles and website-maintenance is the individual post’s slug.
No. A contact page can use example.com/contact/ without an additional section above it. Add a shared folder path when you have related pages to group, such as several services under /services/.
Yes, through the website’s software or server configuration. A name such as /private/ does not protect anything by itself; access must be restricted on the pages and files you want to keep private.
Summary
Subdirectories organize related pages under a shared URL path, such as /blog/ or /services/. Use them where the grouping makes sense for your content, and connect the pages through navigation and internal links. Keep established URLs that work; when you need to change them, redirect the old addresses and update your links.

Work With TCB Studio
TCB Studio helps small businesses plan and improve websites, including page organization, navigation, and URL structure. If you’re adding a new section or reorganizing existing content, we can help determine which pages belong together, which addresses should stay, and where redirects are needed.
Browse our services to get started.
