Should Your Business Use a Subdomain or a Subfolder?
Back to Blogs

Should Your Business Use a Subdomain or a Subfolder?

SubdomainURL StructureSEOSmall Business

Short answer: For most small business websites I put new sections in a subfolder, such as example.com/blog or example.com/shop. I use a subdomain, such as app.example.com, when that part of the business is clearly a separate product or lives on different hosting.

This comes up whenever a site needs a blog, a shop, a booking calendar or a client login. The two options look similar in a conversation and they are not the same in practice. One keeps everything under a single website. The other creates what is, in many ways, a second site that happens to share the same name. Getting this wrong is not a disaster, but changing it later means redirects, new settings and a stretch of messy analytics. It is worth deciding on purpose.

What a subdomain and a subfolder actually are

A subfolder (sometimes called a subdirectory) sits after the domain name:

  • example.com/blog
  • example.com/shop
  • example.com/clients

A subdomain sits in front of the domain name:

  • blog.example.com
  • shop.example.com
  • app.example.com

One detail people miss: www.example.com is itself a subdomain. Choosing whether the public site uses www is a separate decision about the main address of the site, not about where the blog or shop should live. I pick one main address, with or without www, redirect the other, and then decide on subfolders or extra subdomains from there.

Why a subfolder is my default

On a typical small business site, the blog, service pages and contact form are all part of the same website. Putting them in subfolders keeps that true in the technical setup as well as on the page.

A few practical reasons I start there:

  • One site, one set of settings. Search Console, analytics, the sitemap and the SSL certificate already cover /blog if they cover the main domain. A new subdomain often needs its own property, its own tracking and, sometimes, its own certificate.
  • Links stay in the family. When a blog post points to a service page, both URLs sit on the same host. That is simpler for visitors, for sharing, and for search engines that already know the main site.
  • Cookies and logins are easier. If the marketing site and a logged-in area need to share a session, doing that across a subdomain means extra cookie settings and more ways to get it wrong.
  • Hosting is usually simpler. A subfolder is just a folder on the same site. A subdomain may need another DNS record, another vhost, and another place to deploy files.

This is also how I usually structure the pages themselves, which I described in How I Structure a Multi-Page Business Website.

When a subdomain is the right call

I do use subdomains. I just use them when the new part is not really "another page on the same site".

  • A web app or client portal that has its own login, its own interface and often its own codebase. app.example.com or clients.example.com makes the split clear.
  • A shop or tool on another platform. Some ecommerce or booking products are easiest to run on their own hosting and to point a subdomain at. The marketing site stays where it is; the shop lives next door.
  • A staging or test copy of the site, which should never be mixed into the live folders or indexed as if it were the real site.
  • A support desk or documentation site that is a different product, written and hosted separately.

What I do not treat as a good reason: "it looks more professional", "I saw a big company do it", or "the blog might be large one day". Those can all be handled in a subfolder, and you can still move later if the project genuinely splits.

What this means for search

Search engines can crawl and index both setups. I do not tell clients that a subfolder will automatically rank and a subdomain will not. The difference is more about effort and focus.

A subfolder inherits the existing site: the same Domain property in Search Console, the same sitemap if I include those paths, and the same links already pointing at the domain. A new subdomain is closer to launching a second site. It needs verifying, it needs a sitemap of its own, and it does not automatically benefit from every link the main site has earned. I walk through that Search Console setup in Setting Up Google Search Console for a New Website.

If you already have useful pages on the main domain, adding a blog at /blog is usually the quieter, safer path. If you are launching a separate product that should stand on its own, a subdomain can be the cleaner story, as long as you are willing to treat it as a real site, not a folder with a different name.

The extra work a subdomain adds

Before I recommend a subdomain I make sure the client knows what else has to be done:

  • A DNS record for the subdomain, and time for it to start resolving.
  • An SSL certificate that covers it, either a separate certificate or a wildcard that includes *.example.com.
  • Redirects from http to https, and a decision about www on that subdomain (I usually skip www there).
  • Analytics and Search Console set up for the new host.
  • Cookie, login and CORS settings if the two sites need to talk to each other.

None of this is exotic. It is simply more moving parts than a folder on the site you already have.

How I decide on a real project

I ask a few questions, in this order:

  1. Is this the same website, or a different product with a different job?
  2. Will it live on the same hosting and the same codebase?
  3. Do visitors need a shared login or a seamless journey between the two?
  4. Are we prepared to maintain a second set of DNS, SSL, analytics and search settings?

If the answers point to "same site, same host, same journey", I use a subfolder. If they point to "different product, different host, we will maintain it properly", I use a subdomain. I also decide this before launch if I can. Moving a blog from blog.example.com to example.com/blog, or the other way, is doable, but it needs a careful redirect map and a period of watching Search Console.

If you are planning a new site and a shop or blog is part of the brief, my website cost calculator gives a starting range for the build. The subdomain or subfolder choice itself is usually a small part of the work, unless we are wiring up a separate platform.

If you already have a site and you are not sure the current setup is helping you, send me the two addresses and I will tell you what I would keep, what I would move, and what the redirects would involve.

Start a project

If you want help with this on your own site, send me a message here or see what I've built.