Skip to content
Peter KagundaWeb Developer

Subdomain vs Subfolder: Which Is Better for SEO (and When to Use Each)?

November 28, 2026

Tablet showing Google search beside a coffee cup – subdomain vs subfolder for SEO
Peter KagundaBy Search Engine Optimization Published 9 min read

In short

For most businesses, a subfolder (yourbusiness.com/blog) is the better choice for SEO, because everything stays on one site and builds authority together. Google does index and rank subdomains, but they behave more like separate sites, so use one only when a section must run on a different platform or does not need to rank.

The subdomain vs subfolder question comes up almost every time a client wants to add a blog, an online shop, a help centre or a second language to their website. Should it live at blog.yourbusiness.com or at yourbusiness.com/blog? In my experience, for most small and mid-sized businesses the subfolder is the safer, simpler choice for SEO, and a subdomain only makes sense when there is a clear technical or organisational reason for it. Below I explain why, how Google actually treats each option, and how I decide on real projects.

What is the difference between a subdomain and a subfolder?

Both are ways of organising sections of a website under one domain name, but they work differently behind the scenes.

  • Subdomain: a prefix added before your main domain, such as shop.yourbusiness.com or help.yourbusiness.com. Technically it can point to a completely different server, platform or application. "www" is itself a subdomain.
  • Subfolder (also called a subdirectory): a path after your domain, such as yourbusiness.com/shop or yourbusiness.com/help. It normally sits on the same website, the same platform and the same hosting as the rest of your pages.

To a visitor the difference can look cosmetic. To a search engine, a developer and whoever manages your hosting, it can matter quite a lot.

Does Google index subdomains?

Yes. Google crawls and indexes subdomains just like any other website, as long as they are publicly reachable, not blocked in robots.txt and not set to "noindex". A subdomain can rank well on its own. Google has also said publicly over the years that its systems can work with either structure, so you will not be penalised simply for using a subdomain.

The practical catch is that a subdomain is often treated more like a separate site than a section of your main one. In Google Search Console, for example, a URL-prefix property for www.yourbusiness.com will not show data for blog.yourbusiness.com; you need a domain property (verified through DNS) to see everything together. That separation tends to show up elsewhere too: in analytics, in internal linking, in sitemaps and in how authority built on one part of the site supports the other.

If you are not sure whether your pages are being indexed at all, my guide on how to index your website on Google walks through the checks.

Subdomain vs subfolder for SEO: the practical differences

Here is how the two options compare on the things that usually matter to a business owner or an agency.

  • Shared authority: With a subfolder, links and reputation earned by your blog articles naturally support your service pages, because it is all one site. With a subdomain, that connection is weaker in practice and you often have to build it deliberately through internal links.
  • Internal linking: In a subfolder, your menu, footer, related posts and breadcrumbs usually work across everything automatically. On a subdomain built on a different platform, you often end up with two menus, two footers and links that drift out of sync.
  • Tracking and reporting: One site in a subfolder means one analytics setup and one Search Console view. A subdomain usually needs cross-domain tracking configured correctly, or visitors moving between the two get counted as new sessions.
  • Technical freedom: A subdomain wins here. It can run a different CMS, a different server or a third-party tool without touching the main site.
  • Security and stability: A subdomain can isolate risk. If an experimental app on a subdomain breaks or is compromised, the main website can stay unaffected, provided it is hosted separately.
  • Maintenance effort: A subfolder is usually one set of updates, one backup routine and one SSL certificate. A subdomain on another platform means a second system to update, back up and monitor.

When I recommend a subfolder

For most of the business websites I build, a subfolder is my default. I recommend it when:

  • You are adding a blog to attract search traffic. The whole point of the blog is usually to help potential clients find you and then move to your services. Keeping it at yourbusiness.com/blog keeps that journey and the SEO benefit in one place.
  • The new section runs on the same platform. If your site is on WordPress, adding a blog, resources area or case studies section in WordPress itself is the natural fit. A WooCommerce shop can also live happily inside the same install.
  • You want language or country versions that share your brand and content strategy, for example yourbusiness.com/fr. Subfolders combined with correct hreflang tags are often the easiest version to manage.
  • You have a small team. Fewer systems means fewer things to forget to update.

When a subdomain makes more sense

There are good reasons to use a subdomain, and I use them on client projects regularly. I choose one when:

  • The section runs on a different system that cannot sit inside the main site. Hosted help desks, booking tools, customer portals, web apps and some ecommerce platforms often work best, or only work, on a subdomain such as app.yourbusiness.com or book.yourbusiness.com.
  • The content is not meant to rank. Logged-in dashboards, client portals and staff tools do not need SEO at all, so isolating them on a subdomain has no downside and keeps the main site cleaner.
  • It is effectively a separate business or audience. A distinct product with its own branding, team and marketing can justify its own subdomain, or even its own domain.
  • You want to isolate risk or load. Heavy applications or experimental features can be kept away from the marketing site so that problems in one do not take down the other.
  • Testing and staging. A staging copy at staging.yourbusiness.com is a classic, sensible use of a subdomain, as long as it is password-protected or blocked from indexing. I explain this in more detail in what is a staging site.

Common scenarios and what I would choose

A WordPress business site adding a blog

Subfolder, almost every time. It is the same platform, the content is meant to drive search traffic, and keeping it together gives your service pages the most benefit from your articles.

A brochure site adding an online shop

It depends on the platform. If you build the store with WooCommerce on the same WordPress site, a subfolder such as /shop is simple. If you choose a hosted platform like Shopify for the store while keeping the brochure site elsewhere, a subdomain such as shop.yourbusiness.com is usually the practical route. In that case I make sure both sites link to each other clearly and share consistent branding and navigation. My comparison of WooCommerce vs Shopify can help with that platform decision.

A help centre or knowledge base

If it is a hosted support tool, a subdomain is normal. If your help articles answer questions people search for before they buy, consider publishing the most important ones as pages or posts on the main site as well, so they can support your SEO directly.

A web app or client portal

Subdomain. These do not need to rank, often need their own server setup, and benefit from being separated from the public marketing site.

An agency managing many client microsites

For campaign pages that should rank and support the main brand, I lean towards subfolders. For short-lived promotional sites built on a separate landing page tool, subdomains are fine, provided they are cleaned up or redirected when the campaign ends.

How to make a subdomain work well for SEO

If a subdomain is the right call for your setup, these steps help it pull its weight:

  1. Verify a domain property in Search Console so you see the main site and all subdomains together, and submit a sitemap for the subdomain.
  2. Link both ways, prominently. Add the subdomain to your main navigation or footer, and link back to the main site from the subdomain's header.
  3. Keep branding and navigation consistent so visitors do not feel they have landed somewhere else.
  4. Set up cross-domain tracking in your analytics so journeys between the two are measured correctly.
  5. Avoid duplicate content. Do not publish the same articles on both the subdomain and the main site; if you must, use canonical tags to point to the preferred version.
  6. Secure it properly. Every subdomain needs a valid SSL certificate and its own updates and backups.

Moving from a subdomain to a subfolder (or the other way round)

Changing structure later is possible, but it is a site migration and should be treated with the same care. The essentials are:

  • Map every old URL to its new URL before you start, so no page is left without a home.
  • Use permanent 301 redirects from each old address to the matching new one, not a single redirect to the homepage.
  • Update internal links, canonical tags and sitemaps to use the new addresses.
  • Monitor Search Console for crawl errors and indexing changes over the following weeks. Some short-term movement in rankings is normal while Google processes the change.

I cover the full process in my checklist on how to redesign a website without losing SEO, which applies just as well to a structure change. Google's own guidance on moving a site with URL changes is also worth reading.

My rule of thumb

If the content is meant to bring in search traffic and can run on the same platform as your main site, put it in a subfolder. If it is a separate application, a tool that does not need to rank, or something that genuinely has to run on different technology, use a subdomain and connect it carefully. When you are unsure, start with the simpler setup; it is easier to maintain and easier to grow.

If you are planning a new section or wondering whether your current structure is holding your rankings back, I can review it as part of a website and SEO audit and recommend the setup that fits your platform, team and goals.

Frequently asked questions

Is a subdomain bad for SEO?

No. A subdomain is not penalised and can rank well. The challenge is that it often behaves like a separate site, so you have to work harder on internal linking, tracking and authority to get the same benefit a subfolder gives you by default.

Does a subdomain need its own SEO?

In practice, yes. It needs its own sitemap, titles, meta descriptions, internal links and technical checks. If it runs on a different platform, it also needs its own maintenance and security updates.

Should my blog be on a subdomain or a subfolder?

For most businesses, a subfolder such as yourbusiness.com/blog. It keeps the blog's search value connected to your services and is simpler to manage on the same platform.

Is www a subdomain?

Yes, technically "www" is a subdomain. You should choose either the www or non-www version as your main address and redirect the other one to it, so Google sees a single version of your site.

Can I use a subdomain for a Shopify store and keep my main site on WordPress?

Yes, this is a common and workable setup. Point a subdomain such as shop.yourbusiness.com to Shopify, link both sites clearly, keep the branding consistent and set up cross-domain tracking so you can follow customers from content to checkout.

Leave a comment

Replying to ·

Keep reading