For most sites a subfolder is better for SEO than a subdomain. Use a subdomain only when the content is genuinely separate from the main site.

Collage of a hand placing a small folder inside a larger folder beside a paper house

For most sites, a subfolder (example.com/blog/) is the better choice for SEO than a subdomain (blog.example.com). Content in a subfolder sits inside your main site, shares its internal links and is easier to manage as one property. Subdomains make sense when the content is genuinely separate: a different product, platform, audience or language team.

Google has said for years that it can handle both, and that you shouldn’t panic about which you picked. That’s true. But in practice, subdomains tend to be run as separate sites, with their own navigation, their own links and less connection to the main domain. That separation is what costs them.

This decision usually comes up when a business adds a blog, a help centre, a shop or a new country version. Getting it right at the start is far cheaper than migrating later.

The difference between a subdomain and a subfolder

A subdomain is a prefix added before your domain name: blog.example.com or shop.example.com. Technically it can point to a different server and run a different system from the main site.

A subfolder (also called a subdirectory) is a path after your domain: example.com/blog/ or example.com/shop/. It’s part of the same site structure, even if a different system serves it behind the scenes.

Subfolder Subdomain
Example example.com/blog/ blog.example.com
Relationship to main site Part of the same site Often treated as a separate site
Internal linking Shared navigation, easy to link Usually separate, needs deliberate links
Search Console Covered by the main property Covered by a domain property, or needs its own URL-prefix property
Technical setup May need a reverse proxy if run on another platform Simple DNS record
Best for Blogs, guides, resources, service pages Separate apps, platforms or brands

Why subfolders usually win for SEO

Subfolders keep everything under one roof, which helps in three practical ways.

First, links pass more easily. A blog post in a subfolder sits in the same navigation as your service pages, so it’s natural to link between them. Authority earned by a popular guide flows to commercial pages through those links. Our guide to link profiles explains why that matters.

Second, topical relevance builds in one place. When your guides and your service pages live on the same site, Google sees one site covering the subject in depth. A content hub works best when the hub and its articles share a structure.

Third, it’s simpler to run. One site to crawl, one analytics setup, one set of templates and one place to fix technical problems.

When a business moves a blog from a subdomain into a subfolder and sees gains, the URL change itself isn’t what did it. The gains come from the internal linking and consolidation that come with the move.

When a subdomain is the right call

Subdomains are the right choice when the content really is separate from the main site:

  • Web apps and logged-in areas, such as app.example.com, which don’t need to rank at all
  • Third-party platforms you can’t proxy into a folder, such as some help desks, job boards or event systems
  • Separate brands or products with their own audience and marketing
  • Large international sites where each country team runs its own setup
  • Staging and test sites, which should also be blocked from indexing

If the content on a subdomain should rank and support the main brand, treat it like part of the main site: link to it from the main navigation, link back from it, and keep the design and messaging consistent.

Subfolders and subdomains for international sites

For different countries or languages, Google’s documentation lists country-code domains, subdomains and subfolders as valid options, each with trade-offs. Subfolders (example.com/fr/) are the easiest to maintain and keep authority in one domain. Subdomains (fr.example.com) allow separate hosting but split things up. Whichever you choose, use hreflang tags so Google shows the right version to each audience.

The technical side of using a subfolder

The main reason teams end up on a subdomain is technical. The blog runs on WordPress and the main site doesn’t, or the shop runs on a hosted platform. Pointing a subdomain at another server is a single DNS record, while serving it from a subfolder needs a reverse proxy.

A reverse proxy sits in front of both systems and routes example.com/blog/ to the blog’s server while the rest goes to the main site. Most CDNs and modern hosting platforms support it. It takes a developer some setup, but it’s a one-off job, and it’s usually worth doing for content you want to rank.

Moving from a subdomain to a subfolder

If you already run a blog on a subdomain and want to move it, treat it as a site migration:

  1. Crawl the subdomain to list every URL that exists today.
  2. Map each old URL to its new subfolder URL.
  3. Set up 301 redirects from every old URL to its new one, one to one.
  4. Update internal links, canonical tags, sitemaps and hreflang to use the new URLs.
  5. Check the new URLs in Search Console and watch traffic for several weeks.

A site crawl before and after the move catches missed redirects and broken links. Expect some movement in rankings for a few weeks while Google processes the change.

Not sure which setup suits your site, or planning a move? Our technical SEO agency plans and runs migrations like this. Book a free strategy session to talk through your setup.

Related reading: our guides to technical SEO and backlinks.

Common questions

Does Google treat subdomains as separate websites?

Google says it can work out whether a subdomain is part of the main site or separate. In practice, subdomains are often run as separate sites with fewer links to the main domain, which is why they tend to perform less well.

Is a subfolder or subdomain better for a blog?

A subfolder is usually better for a blog. It keeps the content on the main site, makes internal linking easy and helps the blog support your service or product pages.

Will moving from a subdomain to a subfolder lose rankings?

There’s usually some short-term movement. With one-to-one 301 redirects and updated internal links, most sites settle within a few weeks.

Do I need a separate Search Console property for a subdomain?

Not if you use a domain property, which covers every subdomain. A URL-prefix property only covers the exact host it was set up for, so a subdomain would need its own.

Matthew Andrews-MillsFave songDeadmanKarnivool · Sound Awake, 2009

Matt is the Search Lead at Circulate, with over 7 years of experience in SEO strategy, technical fundamentals and content creation. He's led in-house SEO teams and run organic search strategy at some of the UK's leading search agencies, across on-page, international and content-led SEO. He trained as a journalist, with a BA in Journalism and an MA in Creative Writing from the University of Sheffield. That shows in his work: content that answers real questions and earns its place in search.FromBristolBased inSheffieldStudiedJournalism & Creative WritingFave bandKarnivool