HACKER Q&A
📣 onemiketwelve

Does putting a blog on a subdomain vs. subdirectory matter in 2024?


I've been setting up a blog for a project and have always heard the common wisdom to never put the blog in a subdomain (blog.site.com) and instead to always put it as a subdirectory (site.com/blog)

you see a lot of it here from the 2010s. ex: https://news.ycombinator.com/item?id=1176438

But I just ran into a comment on reddit saying that modern Google does not make a distinction anymore. If that's true it would be a hell of a lot easier for me. I could setup the subdomain proxying via cloudflare super easily. If I had to do a subdirectory I would either have to setup cloudflare workers or do some much more complicated reverse proxying

https://www.searchenginejournal.com/google-treats-subdomains-subdirectories-john-mueller-says/254687/


  👤 nickfromseattle Accepted Answer ✓
If you want to leverage SEO to drive traffic, yes, put it on the root domain in a folder.

Yes, Hubspot uses a subdomain, but you're not Hubspot.


👤 warrenm
Neither is especially hard

I have done (and do still, sometimes) both

Sometimes I even have it in a subdirectory with a subdomain alias to get there

I do not think it ever really 'mattered' - all that mattered was how you wanted to think about it