Snoika
Glossary·Technical SEO

What is a subdomain

Definition

A subdomain is a label added to the left of a registered domain name.

It creates a separate address under that domain, such as blog.example.com under example.com. The domain owner can create subdomains at no extra cost and point each one to its own server. A subdomain is a named branch of a domain that the web treats as a host of its own.

TermSubdomain3 min read · reviewed by the Snoika team

Subdomain meaning for SEO

For technical SEO, a subdomain is a separate hostname that search engines crawl and report on apart from the main site. Unless you set up a domain-wide property, Google Search Console has you verify a subdomain as its own property. Its robots.txt file also sits at its own root. Teams put content on a subdomain when it runs on different software, such as a help center or a web shop. Before you plan keywords for a section of your site, check which hostname it's on.

How a subdomain works

A subdomain adds one more label to a domain name, and DNS can send that label to any server. Domain names read from right to left. In shop.example.com, ".com" is the top-level domain and "example" is the name you registered. The "shop" label in front is the subdomain. You create it for free in your DNS settings and can nest labels, as in eu.shop.example.com.

Subdomain vs domain

A domain is the name you register and renew each year, and a subdomain is a free extension of it that you manage from the same account. Whoever controls example.com controls every subdomain under it. Browsers also keep subdomains apart, so a cookie set on app.example.com doesn't reach www.example.com unless the site scopes it to the parent domain. And "www" is a subdomain too, which is why example.com and www.example.com can show different content when someone configures them badly.

Subdomain example

A software company at example.com has its marketing pages at www.example.com, while its product runs at app.example.com. The documentation is built with a separate tool and lives at docs.example.com. Because each subdomain can point to a different host, the docs team can switch website platforms without touching the main site. Visitors see one brand, while search engines see three hostnames.

Subdomain SEO implications

Subdomains require extra work compared with subfolders, even though their ranking treatment is the same by default.

Does Google rank subdomains differently?

Google says the choice of structure isn't a ranking factor. John Mueller, a search advocate at Google, said in a Google Search Central video that "Google Search is fine with using either subdomains or subdirectories." He added that Google has to learn to crawl a new subdomain separately, which an SEO audit will show you,, but that this is "just a formality" for the first few days.

What a separate hostname costs you

You pay for a subdomain in upkeep. It needs its own sitemap and robots.txt file. Google treats it as part of the main site or as a separate site based on how tightly the two are linked. If the content doesn't need different software, a subfolder such as example.com/blog keeps everything on one host.

Subdomains in AI citations

AI assistants cite the exact URL an answer came from, so a subdomain shows up in the citation under its own hostname. When an assistant quotes your help center, the reader sees support.example.com. A visibility report that counts only example.com will miss those citations. Make sure your monitoring covers every hostname you publish on. Put your organization name on each subdomain and link back to the main site.

Subdomain in DNS

In DNS, a subdomain is a record in the parent domain's zone that maps the name to a destination. An A record points it to an IPv4 address, while a CNAME record points it to another hostname, which is how most hosted tools connect. When a browser asks for docs.example.com, a resolver queries the domain's authoritative name servers and returns the matching record. Remove CNAME records for services you've shut down, because an attacker who claims the old target can take over the subdomain.

Related terms

Root domainthe domain with no subdomain in front, such as example.com.
Subdirectorya folder path on the same host, such as example.com/blog, that stays part of the main site.
Top-level domain (TLD)the last label, such as .com or .org, which registries manage.
CNAME recordthe DNS record that points one hostname to another.

Now that you know what a subdomain is, list every hostname your organization uses and check that each one sits in your Search Console account and your visibility reports. While you're at it, remove any DNS record that points to a service you no longer use.

Look up more AI search and SEO terms in our glossary.

Related terms

All terms
Reverse proxyA reverse proxy is a server that sits in front of a website and gets every request before the site's own server does. It decides where each request goes, then sends the answer back to the visitor. A reverse proxy is a gatekeeper on the website's side of the connection. Visitors and crawlers only eveStructured dataStructured data is information arranged in fixed, labeled fields, so a machine can read it without guessing what it means. On a website, the term means schema markup. That's code in a format such as JSON-LD that tells search engines and AI assistants exactly what a page describes, such as a product Orphan pageAn orphan page is a live page on a website that no other page on the same site links to. Visitors and search engine crawlers can reach it through a direct URL or a sitemap entry. A link from another domain provides the only other route. In SEO, orphan content sits outside the site's internal link structure.Robots.txtRobots.txt is a plain text file at the root of a website. It tells crawlers which URLs they may request. Search engines and AI bots fetch it before they crawl anything else, and the file uses it to ask them to skip certain paths. It can't force a bot to obey, and it doesn't remove pages from search results. Robots.txt contains crawl requests that well-behaved bots choose to follow.HreflangHreflang is an HTML attribute that tells search engines which language and region each version of a page is written for. If you're asking what is hreflang, you mean the hreflang tag in a page's head. It lists every translated or regional copy of a page so Google can show each searcher the copy in their language.SitemapA sitemap is a file that lists the pages on a website you want search engines to find, with optional dates for when each page last changed. Crawlers read it to find URLs they miss when they follow links. A sitemap is a map of your site written for machines. The usual format is XML, saved at the site root as /sitemap.xml.

See how AI talks about your brand

Get free audit