Subfolder vs subdomain

By

Subfolder or subdomain for a new section of your site? Compare the two on hosting, management and SEO, with what Google actually says about ranking them.

~~~

I got involved in a discussion about using subdomains vs subfolders.

Say I want to create a new section on my website, dedicated to selling honey.

I don’t produce nor sell honey, it’s just an example. Although one of my friends has bees and produces his own honey and it’s delicious 😋

The honey part of the website would be pretty big, with its own application to manage the e-commerce.

I could add this on my website in two ways. The first is by using a subfolder, like this: flaviocopes.com/honey.

The second is by using a subdomain, for example honey.flaviocopes.com.

There is a third option, which is using its own domain name, like flaviohoney.com. But let’s focusing on keeping our original domain.

A subdomain makes things easier to manage: you have your own completely separate app or CMS or anything, you store it separately in its Git repository if that’s what you use for CI/CD, and you can also host it separately on its own hosting.

Setting up a subdomain is just a DNS record. If you’re unsure which type you need, I built a free DNS records explainer that helps you figure it out.

I think it’s the ideal solution when you are using an external service like Shopify or anything, as they let you use a subdomain.

A subfolder on the other hand is a bit more complicated because unless you come up with creative ways on the server side (which implies you need to manage your own server), the code must all be put under the original code that manages the main domain.

On SEO, Google’s position is simpler than the old “subdomains are a separate site” rule of thumb.

Google has said its web search is fine with either subdomains or subfolders, and that neither has a built-in ranking advantage. Pick what you can manage cleanly. Subfolders keep everything in one Search Console property, one sitemap, and plain internal links. Subdomains are fine when you need a real split: a different app, a different team, or an external tool like Shopify on store.example.com.

honey.flaviocopes.com can still rank well. You just have more to manage: a separate sitemap, a separate Search Console property unless you verify the whole domain, and Google has to learn to crawl the new host, which it says is a formality for the first few days. If everything is yours and you want one site, flaviocopes.com/honey is the simpler setup.

From the branding standpoint, I don’t personally think there are differences. It’s much better to have a separate domain, logo and design for a big project. But if it’s just an idea or something you want to test-drive for example, without investing time and effort into having a separate domain, then both subfolder or subdomain approaches will work fine.

Tagged: Blogging · All topics

Want me to talk about your product? You can sponsor this site.

~~~

Related posts about blogging: