Nightcrop
LoginGet started

What Is a Subdomain? Subdomain vs Subfolder for SEO

Nightcrop · December 6, 2026

A subdomain is a prefix in front of your main domain, such as blog.example.com. Google's John Mueller says the choice depends on whether the content should stand on its own. For most small sites, a subfolder such as example.com/blog is simpler, because it needs no separate setup. Choose a subdomain only when the content truly stands apart.

What is a subdomain?

A domain name has parts that read from right to left. In blog.example.com, ".com" is the top-level domain, "example" is the domain you registered, and "blog" is the subdomain. You create subdomains yourself in your DNS settings, and each one can point to a different server or a different tool. A subfolder (also called a subdirectory) is a path on the same host, such as example.com/blog. The browser sees one site, and your server or CMS decides what to show.

SubdomainSubfolder
Exampleblog.example.comexample.com/blog
Set up inDNS and hostingYour site or CMS
Can run on a separate platformEasilyNeeds a proxy or rewrite rule
Search ConsoleCovered by a domain property, not by a URL-prefix property of the main siteCovered by the main site's property

Does Google treat subdomains differently from subfolders?

Google has not published a rule that says one ranks better than the other. What it has said is more careful. In 2022 Mueller wrote that his thinking on subdomains "depends on what you're trying to do," and that "if you want the content to stand on its own, then a subdomain is a good match." He also noted that subdomains sometimes make things "a bit more complicated" on the technical side, as reported by Search Engine Roundtable.

That comment compared a subdomain with the main www site, not with a subfolder, so do not read it as a ranking verdict. The honest summary is that Google does not tell you to avoid subdomains, and it does not promise they will share a main site's strength either. You should expect to build a subdomain's visibility on its own.

When does a subdomain make sense?

Pick a subdomain when the content really is a separate thing:

When should you use a subfolder instead?

If the content exists to support the same readers and the same goal as your main site, put it in a subfolder. A blog that explains your product's topic is the standard case. Every post then sits under one host, uses one set of analytics and one Search Console property, and links naturally into the rest of the site. You also avoid a failure that is common on small sites: a blog moved onto a hosting tool's subdomain that nobody tracks. For how paths affect your addresses, see URL structure for SEO.

How do subdomains affect Search Console?

Search Console treats the two property types differently. According to Google's help page on property types, a Domain property captures data "from that domain and all subdomains and protocols (http/https)." A URL-prefix property does not: "Subdomains, such as m.example.com, are not included in this URL prefix."

In practice, if you own blog.example.com and only verified https://example.com, you will see no data for the blog. Verify a Domain property through DNS and you cover everything at once.

What breaks when you move between the two?

Moving content from a subdomain to a subfolder, or the reverse, changes every URL. Google's site move guidance says the Change of Address tool applies when you move between domains or subdomains, such as a.example.com to b.example.com, and that moving paths within one domain does not need it. Whichever way you go, plan to:

  1. Map every old URL to its new one in a spreadsheet.
  2. Use 301 redirects from each old URL to its exact new match. If you are unsure of the difference, read 301 vs 302 redirects.
  3. Update internal links, canonicals and the sitemap so nothing points at the old address.
  4. Verify both properties in Search Console and watch coverage for several weeks.

The full process is in the site migration checklist. Because of this cost, pick the structure you can live with for years.

A quick decision rule

Ask one question: would a reader of the main site be glad to find this content there? If yes, use a subfolder. If the content serves a different audience, runs on a different system, or is managed by a different team, a subdomain is reasonable. When you cannot decide, choose the subfolder, because it is easier to measure and easier to explain.

Frequently Asked Questions

Is a subdomain a separate website?

Technically it has its own host name and can run on its own server. Search Console lets you track it separately unless you use a Domain property, which groups them.

Do subdomains share ranking strength with the main domain?

Google has not said they do or do not. Plan on the subdomain earning its own visibility, and do not count on the main site lifting it.

Is www a subdomain?

Yes. The "www" in www.example.com is a subdomain. It is usually set to show the same site as the bare domain, with one version redirecting to the other.

Where should I put my blog?

In a subfolder, such as example.com/blog, unless a platform limitation forces a subdomain. One host keeps measurement and linking simple.

Can I switch later?

Yes, with 301 redirects from every old URL to its new one. Expect a settling period, so do it once and carefully.