Subdomain SEO: Subdomain vs Subfolder and What Google Says

Subdomain SEO: Subdomain vs Subfolder and What Google Says

SEODecember 6, 2026
By Antonio Fernandez

TL;DR

  • Google's SEO Starter Guide says to choose subdomains or subdirectories based on what makes sense for the business; it describes no subdomain penalty.
  • A subdomain is a separate hostname with its own robots.txt; a subfolder shares the main site's host, robots.txt and usually its CMS.
  • Moving a blog into a folder needs one-to-one 301 or 308 redirects kept for at least a year, updated internal links and a new sitemap in Search Console.
  • A Search Console Domain property, verified by DNS record, covers every subdomain and both http and https; a URL-prefix property covers one exact prefix.

Subdomain SEO comes down to one decision: whether a section of your site lives on its own hostname (blog.example.com) or in a folder on the main one (example.com/blog/). Google's SEO Starter Guide says to choose whichever structure makes sense for your business, and Google's documentation describes no subdomain penalty. In practice a subfolder is usually simpler to run for a blog or a language version, while a subdomain makes sense when the section is a separate system.

This guide explains the difference between the two structures, what Google has actually said, when each one fits, how to move a blog from a subdomain into a subfolder without losing traffic, and how to set up Search Console so you can see both.

Subdomain vs subdirectory: what each one is

A domain such as example.com is the name you register. A subdomain is a prefix added in front of it, created with a DNS record: blog.example.com, shop.example.com, th.example.com. Each subdomain is a separate hostname. It can point to a different server, run a different platform, and have its own SSL certificate and its own robots.txt file.

A subdirectory, also called a subfolder, is a path on the same hostname: example.com/blog/, example.com/th/. It is served by the same host as the rest of the site, usually by the same platform, and it shares the site's robots.txt, certificate and server.

Note that www is technically a subdomain too. www.example.com and example.com are different hostnames, which is why a site has to redirect one to the other and pick one as the canonical version.

What Google has said about subdomains and subfolders

Google's SEO Starter Guide in Search Central addresses the question directly. Its advice, paraphrased, is to do whatever makes sense from a business point of view. It adds that a site may be easier to manage when it is split into subdirectories, and that at other times it can make sense to split topics into subdomains, depending on the site's topic or industry.

Google's documentation on multi-regional and multilingual sites compares the two for locale-specific URLs. It lists subdomains as easy to set up, able to use different server locations and easy to separate. It lists subdirectories as easy to set up and low maintenance because they share the same host, with the drawbacks that they use a single server location and are harder to separate. For both, it notes that users may not be able to tell from the URL alone whether a code like "de" means a language or a country.

What Google has not said is that subdomains rank worse, or that a subfolder passes some fixed amount of authority that a subdomain does not. Claims of a subdomain penalty come from SEO practitioners, not from Google's documentation. The honest reading is that the structure itself is not a ranking factor in either direction, but it changes things that do matter: how easily content is linked internally, how it is managed, and whether it is set up and monitored properly.

When a subdomain makes sense

A subdomain is a reasonable choice when the section is a different system rather than more pages of the same site:

  • A web application or customer portal (app.example.com) that runs on separate infrastructure and is mostly behind a login.
  • A help centre, community forum or status page built on a third-party platform that cannot be served from a folder on your main host.
  • A market with a separate business team, separate legal entity or content that needs to live on servers in a different region.
  • A staging or development environment, which should normally be blocked from indexing anyway.

In these cases the operational gain is real, and trying to force a separate platform into a folder through reverse proxies can create more technical risk than it removes.

When a subfolder is the safer choice

For a blog, a resource library or a language version of the main site, a subfolder is usually the easier option. The content sits in the same CMS as the rest of the site, so navigation, internal links, templates and tracking stay consistent. One robots.txt, one sitemap index and one analytics setup cover everything. Internal links from the main navigation to articles, and from articles back to service pages, happen naturally rather than across a hostname boundary that teams tend to forget about.

Most problems blamed on subdomains are really problems of neglect: a blog subdomain on an old WordPress install that nobody updates, with no links from the main menu, its own robots.txt that blocks something by accident, and no separate Search Console property so nobody notices. A subfolder removes those failure points by keeping the content inside the system that already gets attention.

Subdomain or subfolder for a Thai and English site

For language versions, Google's documentation treats country-code domains, subdomains and subdirectories as valid options, each with trade-offs. Whichever you choose, hreflang annotations connect the versions, and they work across subdomains as well as across folders. A /th/ folder on the main domain is the lowest-maintenance option when both languages run on one CMS. A th. subdomain makes more sense if the Thai site runs on a different platform or is managed by a different team.

How to move a blog from a subdomain to a subfolder without losing traffic

A move from blog.example.com to example.com/blog/ is a site move with URL changes. Rankings can fluctuate while Google recrawls, so plan it as a project with a checklist:

  1. Crawl the subdomain and export every indexable URL, along with the pages that get organic traffic and backlinks.
  2. Build a one-to-one redirect map: each old URL to its new equivalent in the folder. Avoid sending everything to the blog home page, because Google may treat mass redirects to an unrelated page as soft 404s.
  3. Publish the content in the new folder with the same body, titles and structured data, and with canonical tags pointing to the new URLs.
  4. Switch on permanent redirects (301 or 308) from every old URL to its new one. Keep redirect chains short; one hop is the target.
  5. Update internal links across the main site and the blog so they point to the new URLs directly instead of through redirects.
  6. Submit the new sitemap in Search Console.
  7. Keep the redirects in place for as long as possible. Google's site-move guidance says at least a year, and longer is fine.
  8. Monitor Search Console's page indexing and performance reports for both hostnames over the following weeks.

Do not rely on Search Console's Change of Address tool for this kind of move without checking its current help page; the tool supports only certain kinds of moves and is not required for redirects to work.

Search Console setup for subdomains

Search Console has two property types. A Domain property, such as example.com, covers every subdomain and both http and https. It must be verified with a DNS record. A URL-prefix property, such as https://blog.example.com/, covers only URLs that start with that exact prefix, including the protocol, and can be verified in several ways, such as an HTML file or the Google Analytics tag.

The practical setup is a Domain property for the whole site, so nothing on any subdomain is invisible, plus URL-prefix properties for important subdomains or folders when you want their reports separated. If the blog lives on a subdomain and you only have a URL-prefix property for the www site, the blog's data will not appear there at all.

Subdomain vs subfolder at a glance

Subdomain vs subfolder at a glance
FactorSubdomainSubfolder
Hosting and platformCan run on a separate server or platformSame host and usually the same CMS
robots.txt and sitemapsNeeds its own robots.txt; sitemaps per hostShares the main site's robots.txt and sitemap index
Search ConsoleCovered by a Domain property; needs its own URL-prefix property for separate reportsCovered by the main property; folder-level properties optional
Best fitApps, portals, third-party help centres, separately run marketsBlogs, resource sections, language versions on one CMS

What this means for businesses in Thailand

Many Thai company sites run a corporate site on one platform and a blog or campaign microsite on another, often built by a different vendor. The result is often a subdomain that nobody owns after launch. If that describes your setup, check three things: that the subdomain appears in a Domain property in Search Console, that its pages link to your service pages and are linked from the main menu, and that its robots.txt and sitemap are correct. If the content is ordinary blog material and the main CMS can host it, moving it into a folder usually makes the site easier to maintain.

For bilingual Thai and English sites, also confirm that hreflang tags point to the right versions and that the Thai URLs resolve without errors, because Thai-script slugs are percent-encoded and break easily during migrations.

Subdomain SEO FAQ

Do subdomains hurt SEO?

No, Google has not said that subdomains are penalised, and its Starter Guide tells site owners to choose the structure that suits their business. Subdomains cause trouble mainly when they are neglected: poorly linked, missing from Search Console, or running out-of-date software.

Does Google treat a subdomain as a separate site?

A subdomain is a separate hostname, so it has its own robots.txt, needs its own sitemap entries and has its own URL-prefix property in Search Console. The separation is technical and operational; Google has not described it as a ranking disadvantage.

Is a subfolder better than a subdomain for a blog?

For most businesses a subfolder is the easier choice for a blog, because the content shares the main site's CMS, navigation, internal links and tracking. A subdomain is still reasonable if the blog must run on a separate platform.

How do I add a subdomain to Search Console?

The simplest way is to verify a Domain property with a DNS record, which covers every subdomain automatically. You can also add a URL-prefix property for the subdomain, such as https://blog.example.com/, to see its data in a separate report.

Choosing the right structure

If you are unsure whether a subdomain is holding content back, an SEO audit will show how the hostnames are crawled, indexed and linked. When the answer is a restructure, it goes more smoothly when the web design and migration are planned together, and Relevant Audience's SEO services in Thailand cover the redirect mapping and monitoring after a move.

Antonio Fernandez

Antonio Fernandez

Founder and CEO of Relevant Audience. With over 15 years of experience in digital marketing strategy, he leads teams across southeast Asia in delivering exceptional results for clients through performance-focused digital solutions.

Share to:
Copy link:

Read us often? Add Relevant Audience as a preferred source so our articles surface more in your Google results.