Back to Glossary
SEO

Subdomain

A subdomain is a separate address segment that sits in front of the main domain, separated by a dot, such as the "blog" in blog.example.com. It is used to split off specific functions like a blog, store, or multilingual site, and Google tends to treat a subdomain as closer to a distinct site than part of the main domain.

  • A subdomain is the address segment that appears before the main domain, separated by a dot (for example, the blog in blog.example.com).
  • It differs from a TLD (.com, .org, and so on), which sits at the end of a domain, in both position and role.
  • Google officially states that subdomains and subdirectories are treated equally, yet in practice a subdomain is often perceived as closer to a separate site and may not fully inherit the main domain's authority.
  • The common recommendation is to use a subdirectory for areas that belong to the main site, such as a blog or content hub, and a subdomain for areas whose function or design differs substantially.

Overview

A subdomain is a partitioned address segment that attaches to the front of the main domain, separated by a dot. If example.com is the main domain, then blog.example.com, shop.example.com, and support.example.com all carry a subdomain as their leading segment. Subdomains are used to divide a single domain by purpose, physically separating a blog, online store, customer support, multilingual versions, or development and test environments.

A frequently confused concept here is the TLD (top-level domain). A subdomain attaches to the front of a domain, while a TLD is the portion at the end of a domain, such as .com, .org, .net, or .kr. In blog.example.com, blog is the subdomain and com is the TLD. Because their position and role are entirely different, the two must be kept distinct.

From a search engine perspective, the key point is that Google generally treats a subdomain as closer to a separate site. As a result, the backlinks and authority the main domain has accumulated may not pass fully to the subdomain. That said, when a subdomain is tightly connected to the main site through internal links, it can still be recognized as part of the same site.

Subdomain vs. Subdirectory Comparison

AspectSubdomainSubdirectory (subfolder)
URL formblog.example.comexample.com/blog
PositionBefore the main domainA path after the main domain
Google's perceptionGenerally treated as closer to a separate siteTreated as part of the main domain
Link authority inheritanceMay not be inherited in fullDraws directly on the main domain's authority and backlinks
ManagementMay require separate hosting, SSL, and analytics setupSingle hosting; CMS integration is straightforward
Suitable useAreas with substantially different function or structure, such as multilingual sites, stores, and test environmentsContent that belongs to the main site, such as blogs, news, and guides

SEO Implications

For content whose topic flows from the main site, a subdirectory is often advantageous because it draws directly on the main domain's authority. Conversely, a subdomain suits areas whose function, design, or operating party is clearly separate. However, moving an already running structure between a subdomain and a subdirectory purely for SEO reasons carries risk and should be approached with caution.

Evidence

Google's John Mueller has stated that, from the search quality team's standpoint, subdomains and subdirectories are essentially equivalent and that content can be placed wherever preferred (Search Engine Journal). Matt Cutts likewise noted that the two are largely equivalent (Ahrefs).

Field data, however, shows differences. Semrush explains that Google tends to handle subdomains as separate sites at the crawling and indexing stages, so they may not receive the full benefit of the main domain's accumulated authority. Ahrefs argues that neither structure is inherently superior and that how a subdomain is treated depends on how well it is integrated into the main site through internal links. Moz has also shared a case in which moving its Beginner's guide from guides.moz.com (a subdomain) to moz.com (the main domain) produced an immediate ranking lift with no other changes (cited by Semrush).

Sources

Related terms