A closer look at sub—s
To some degree, SEO is always a mystery: most search engine companies are deliberately secretive about the logic of their algorithms, and that logic can change significantly with evolving technologies. But we understand how subdirectories and subdomains work as organizational logic, which helps us understand how they interact with SEO practices.
Subdirectories function like folders, organizing parts of your site under a single domain. When someone searches for terms that might generate your page as a result, search engines only see one domain. You can recognize a site organized this way by looking for the forward slash at the end of the top-level URL; for example, b13 organizes our site using subdirectories, which is why you can find our collection of expert deep dives at b13.com/blog.
Subdomains function like interconnected smaller sites, organizing different parts of your web presence as individual pages under your primary domain address. You might, for instance, separate the different services you offer into independent pages that change the URL structure more directly but share common components like your company domain. As an example: we might have chosen a URL like blog.b13.com (but don’t click that, because we didn’t).
A full domain hierarchy might look like:
- Top-level domains: the familiar URL endings like [.com, .org, .edu]
- Root or primary domains: the core URL, such as [www.yoursite.com]
- Subdirectories: forward slash extensions on your URL that direct to a subset of your content, such as [www.yoursite.com/blog]
- Subdomains: related semi-independent sites that share a core URL structure, such as [blog.yoursite.com] or [services.yoursite.com]
It’s common for companies to use a mix of approaches. Organizations might develop a set of primary domains tailored to each country of operation or each primary language, with subdirectories to help users find the resources they need. To see this in action, try browsing Apple’s web presence—you could look at www.apple.com/de and www.apple.com/uk to see how a forward-slash URL ending (a subdirectory) changes the user experience. And sites like discussions.apple.com take users to dedicated subdomains.
Search engines read subdomains and subdirectories as different kinds of entities, so your SEO best practices depend on the structure you choose.