Subdomain SEO: Subdomain or Subfolder for Your Blog, Store, Help Center and App
Subdomain SEO comes down to one fact. Google has no ranking preference between blog.example.com and example.com/blog, but it treats every hostname as its own site for crawling, crawl budget and robots.txt. Keep content that should rank together in subfolders, and use a subdomain only when the platform, team or risk behind a section is separate.
By Raúl Díaz, founder of Slibur
11 min read

In this article
Most companies have four sections to place: the blog, the store, the help center and the app. Country and language versions (de.example.com against example.com/de/) are a different decision with hreflang in the middle, and the international SEO audit deals with them. How to name the paths themselves is in the guide to SEO-friendly URLs. And once every host is crawlable, whether ChatGPT names your brand is its own question, which the comparison of ChatGPT SEO tools takes up.
What Google says about subdomains and subfolders
Google's answer hasn't changed in years. Its crawling and indexing FAQ (opens in a new tab) tells you to choose whatever is easiest to organize and manage, because "from an indexing and ranking perspective, Google doesn't have a preference."
John Mueller said the same in a Google video that Search Engine Roundtable covered on January 24, 2018: "Google web search is fine with using either subdomains or subdirectories." He added the part people skip. Pick a setup you can keep for longer, because URL changes take a while to settle in search. Four months later, Search Engine Journal quoted him going further: "I would personally try to keep things together as much as possible," with subdomains for things that really are different.
Two other Google documents fill in the detail:
- Site diversity. Google's guide to its ranking systems (opens in a new tab) says it generally won't show more than two listings from the same site in its top results, and that this system "generally treats subdomains as part of a root domain." Sometimes it treats them as separate sites when that's relevant. A help center on support.example.com doesn't reliably buy you extra top results.
- Spam policies. Google counts creating new subdomains or subdirectories to keep breaking its rules as policy circumvention. A subdomain is not a firewall around a penalty.
So why do so many SEOs swear by subfolders? Much of their evidence is migration stories, where a blog moves from a subdomain into /blog and traffic rises. A before-and-after chart can't separate the hostname from everything else that changed in the same project: new navigation, more links from product pages, a faster template. The better argument for subfolders is practical. One host means one robots.txt, one crawl budget, one Search Console view and one place for internal links to flow.
What changes when a section gets its own hostname
Rankings may be neutral, but a lot of what search engines and AI crawlers do is set per hostname. This is the part most guides on the topic leave out.
| What | Subfolder (example.com/help) | Subdomain (help.example.com) |
|---|---|---|
| robots.txt | Shares the main file | Needs its own file at its own root |
| Crawl budget | Shares the main host's budget | Gets a separate budget |
| Crawl slowdown after 5xx or 429 errors | Hits the whole host | Stays on that host |
| Favicon in Google results | Uses the main site's | Can have its own |
| Site name in Google results | Not supported | Supported |
| Search Console | Inside the main property | Inside a Domain property, or its own URL-prefix property |
| llms.txt | Root file, or an optional file under the path | Its own root file |
| Site diversity | Same site | Generally the same site |
Here is where each row comes from:
- robots.txt. Google's robots.txt specification says the rules "apply only to the host, protocol, and port number" where the file sits, and that a file on a subdomain is only valid for that subdomain. RFC 9309, the standard published in September 2022, puts the file at the top-level path of each service.
- Crawl budget. In Google's crawl budget guide (opens in a new tab), a site is a unique hostname, so www.example.com and code.example.com get separate crawl budgets. The guide is written for sites with 1 million or more unique pages, or 10,000 or more pages that change daily. Most sites never need to think about it.
- Crawl slowdowns. When Google meets a significant number of 500, 503 or 429 responses, it lowers the crawl rate "across the whole hostname," including the URLs that return content.
- Favicon and site name. Google supports one favicon per hostname. Site names work at domain or subdomain level, not for a subdirectory such as example.com/news.
- Search Console. A Domain property, verified through DNS, includes all subdomains and protocols. A URL-prefix property includes only URLs with that exact prefix, so https://example.com misses https://www.example.com. In a Domain property, the Crawl Stats report can be scoped to one child host, and it lists the top 20 that received traffic in the past 90 days.
- Analytics. Google Analytics recommends its cross-domain setup for subdomains, because moving between subdomains that use different cookie domains can create self-referrals.
Sitemaps have one quirk. A sitemap only covers URLs under its own directory unless you submit it in Search Console, yet you can keep the sitemaps for several verified hosts in one place and point to them from each host's robots.txt. For the file itself, see the sitemap SEO guide.
Blog, store, help center or app: where each one belongs
Start from a subfolder. A subdomain earns its place when the platform, the team or the risk behind a section is separate from the main site.
| Section | Default | When a subdomain makes sense |
|---|---|---|
| Blog | example.com/blog | A separate publication with its own brand and readers |
| Store | example.com, if the store is the site | The storefront runs on a hosted platform and the main site doesn't |
| Help center | example.com/help or /docs | The help desk software only maps to a subdomain |
| App | app.example.com | Almost always |
| Staging | Not public | Always, behind a password |
Blog
A blog is the section most likely to earn links, and the one that should send readers on to product and pricing pages. Keeping it on the main host keeps those internal links inside one site and one crawl. If the blog runs on a hosted CMS, you can still serve it under /blog with a reverse proxy. Cloudflare described doing exactly that in 2019, with an NGINX location block or with its Workers. A subdomain blog makes sense when it is a separate publication with its own editor and audience, and then it needs its own links and promotion.
Store
When your store is the whole website, there is nothing to decide. The question comes up when the main site runs on one system and the storefront on another. Shopify, for example, says it doesn't recommend a proxy configuration in front of Shopify and can't support one. That makes shop.example.com the practical choice for a Shopify store attached to a site built elsewhere. Put the store in the main navigation, and link product pages back to the guides that explain them.
Help center and docs
Help articles answer the exact product questions people type into Google and ask AI assistants, so they deserve to be crawled. Hosted help desks often pick the hostname for you. Zendesk's host mapping, for one, maps a help center to a subdomain of your own domain, such as support.yourcompany.com. Self-hosted docs fit under /docs or /help. Wherever they live, link to them from product pages and check that the help host isn't shutting out the crawlers you want.
App and login
The logged-in product belongs on its own subdomain. That keeps session URLs and private screens away from your public site. It also protects your marketing pages: because Google lowers the crawl rate per hostname when errors pile up, an app outage on app.example.com doesn't slow the crawling of www. Only the public login and signup pages need to be reachable, and they rarely need to rank.
Staging and test sites
Staging should never be public. Protect it with a password instead of relying on robots.txt. A staging file with "Disallow: /" is easy to copy to production by mistake during a launch, and then the live site tells every crawler to stay away.
AI crawlers and llms.txt work per hostname too
Everything above about robots.txt applies to AI crawlers. Rules on www.example.com don't reach help.example.com. A help center can block OAI-SearchBot or Claude-SearchBot while your main site welcomes them, and the main site's file gives no hint of it.
The AI companies say so plainly. Anthropic's crawler page (opens in a new tab) asks site owners to add the rule "for every subdomain that you wish to opt out from." OpenAI separates OAI-SearchBot, which surfaces sites in ChatGPT search, from GPTBot, which collects training data, and says a robots.txt change can take about 24 hours to show in search results. Perplexity gives the same window of up to 24 hours for PerplexityBot. If you want to appear in AI answers but stay out of training sets, the search crawlers are the ones to allow on every host.
Hosted platforms often write the file for you. Shopify generates a default robots.txt that you can only change through a robots.txt.liquid template, which it calls an unsupported customization, and it notes that robots.txt rules are "directional and advisory." On other platforms, check whether you can edit the file at all. The only way to know what a hosted subdomain tells AI crawlers is to fetch its file.
# https://help.example.com/robots.txt
# Out of training sets, open to AI search
User-agent: GPTBot
User-agent: ClaudeBot
Disallow: /
User-agent: *
Disallow: /admin/
In that file, OAI-SearchBot, Claude-SearchBot and PerplexityBot fall under the last group. Give one of them a group of its own and it ignores the rest, since Google's specification says only one group is valid for a particular crawler, so repeat any Disallow lines it should keep.
The llms.txt proposal, published by Jeremy Howard on September 3, 2024, puts the file at the root of a site or at a subpath, where it covers the pages under that path. A docs section in a subfolder can therefore have its own file at /docs/llms.txt, while docs.example.com needs one at its own root. It is a proposal open for community input, not an adopted standard, so treat it as a cheap extra rather than a ranking factor.
How to check every hostname
- List your hostnames. Start from the hosts in the Crawl Stats report of a Domain property, then add your DNS records and the links in your header and footer.
- Fetch each robots.txt. Open https://host/robots.txt for every host. For Google, a 404 means no restrictions, while a 5xx error makes it stop crawling that host for the first 12 hours.
- Check the AI bots on each host. Run every hostname through the AI crawler checker, which reads that host's robots.txt and shows the line that lets each crawler in or keeps it out.
- Check llms.txt where you publish one. The llms.txt checker takes a full hostname, so test docs.example.com separately from the main domain.
- Watch for redirects. Google follows at least five redirect hops for robots.txt, and RFC 9309 applies a redirected file's rules to the original host. A real file on each host is still easier to audit.
Crawler access only gets you in the door. Whether ChatGPT or Google AI Overviews then names your brand, and which of your hosts it cites, is a separate question. Slibur asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and lists every source each answer cites, by URL and domain, so you can see whether answers point at www, help or docs.
Slibur dataChatGPT, United States, 4 answers, November 17, 2026
What ChatGPT said about subdomains and subfolders
We asked ChatGPT four questions on November 17, 2026, from the United States: whether a company blog belongs on a subdomain or a subfolder, where to host a help center, how to move a blog from a subdomain to a subfolder without losing traffic, and whether each subdomain needs its own robots.txt for AI crawlers.
- It defaulted to subfolders. For both the blog and the help center, ChatGPT repeated Google's line that there is no ranking preference, then recommended example.com/blog/ and example.com/help/ anyway. Subdomains were for separate platforms, teams or infrastructure.
- It leaned on Google's documentation. All four answers cited developers.google.com. Only the robots.txt answer cited anyone else: OpenAI's crawler page and Anthropic's.
- The migration answer followed Google's site-move guide. One-to-one 301 or 308 redirects, updated canonicals and sitemaps, redirects kept for at least a year. It added that the Change of Address tool generally isn't needed, while Google's guide lists that tool for moves from one subdomain to another, so check it before a move from blog.example.com to www.example.com/blog.
- The robots.txt answer got the main point right. Each host needs its own file. Its sample file, though, allowed GPTBot, the training crawler, and it advised serving each file instead of redirecting to the main domain's, although Google follows those redirects.
- Nobody mentioned the rest. None of the four answers brought up llms.txt, crawl budget, favicons or site names.
When answers about setup lean this heavily on official documentation, your own help and docs pages are the ones that can play that role for questions about your product. They can only do it if their host lets the search crawlers in.
Moving a section between a subdomain and a subfolder
A move from blog.example.com to example.com/blog is a site move with URL changes, and the SEO site migration checklist covers the full process. The short version from Google's site-move guide: permanent 301 or 308 redirects from every old URL to its exact new one, kept for at least a year, and ranking fluctuations while Google recrawls, which on a medium-sized site can take a few weeks or more. The Change of Address tool only works on domain-level properties and doesn't move the subdomains under them.
What doesn't move by itself is everything set per host. Copy the robots.txt rules, llms.txt, sitemap reference and analytics settings to the new home, and keep the old host answering with redirects instead of shutting it down.
Rankings won't tell a subdomain from a subfolder. Robots.txt, crawl budget and AI crawler access will, one hostname at a time. To see which of your hosts ChatGPT, Google AI Overviews, Claude, Perplexity and Grok cite for the questions your customers ask, start a 7-day free trial of Slibur, with no credit card.
Frequently asked questions
Is a subdomain bad for SEO?
No. Google says that from an indexing and ranking perspective it has no preference between subdomains and subfolders. A subdomain does cost more work: its own robots.txt, its own crawl budget, its own favicon and, unless you use a Domain property, its own Search Console property. Choose one when the platform or team behind a section is separate, not in the hope of a ranking boost.
Does a subdomain get the main domain's authority?
Google doesn't describe it in those terms. What it documents is narrower: its site diversity system generally treats subdomains as part of the root domain, while crawling and robots.txt treat each hostname as a separate site. In practice, link the two together the way you would link two sections of one site, from the navigation, product pages and articles.
Do I need a separate Search Console property for each subdomain?
Not if you verify a Domain property through DNS. It includes every subdomain and protocol, and its Crawl Stats report can be scoped to one child host. A URL-prefix property covers only its exact prefix, so https://example.com does not include https://blog.example.com. Add URL-prefix properties for the hosts you want to watch on their own.
Does each subdomain need its own robots.txt and llms.txt?
Yes for robots.txt. Google and RFC 9309 apply the file only to the host, protocol and port where it lives, and Anthropic asks site owners to add its rules on every subdomain. For llms.txt, the proposal places the file at the root of a site or at a subpath, so a subdomain that should have one needs its own.
Should I move my blog from a subdomain to a subfolder?
Only with a reason beyond rankings, such as merging platforms or teams, or making internal linking easier. Google warns that rankings fluctuate after any site move, and on a medium-sized site new URLs can take a few weeks or more to replace the old ones. If you move, redirect every URL one to one with 301s and keep the redirects for at least a year.
Can a reverse proxy put a hosted blog or store under a subfolder?
For a blog, often yes: Cloudflare has described serving a remotely hosted blog under /blog with an NGINX location block or with Cloudflare Workers. For a store, check the platform first. Shopify says it doesn't recommend a proxy configuration in front of Shopify and can't support one, so a Shopify store usually lives on a subdomain such as shop.example.com.
How do I know whether AI assistants cite my subdomain?
Ask the questions your customers ask and look at the sources in each answer. Slibur does this for ChatGPT, Google AI Overviews, Claude, Perplexity and Grok, and lists the cited URLs and domains, including whether each one is yours. Before that, make sure each host's robots.txt lets OAI-SearchBot, Claude-SearchBot and PerplexityBot in.

Raúl Díaz is the founder of Slibur, the tool that asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and shows which brands they recommend. He writes about answer engine optimization from the data Slibur collects.