TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby onemiketwelveabout 1 year ago
I&#x27;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&#x2F;blog)<p>you see a lot of it here from the 2010s. ex: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1176438<p>But I just ran into a comment on reddit saying that modern Google does not make a distinction anymore. If that&#x27;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<p>https:&#x2F;&#x2F;www.searchenginejournal.com&#x2F;google-treats-subdomains-subdirectories-john-mueller-says&#x2F;254687&#x2F;

2 comments

nickfromseattleabout 1 year ago
If you want to leverage SEO to drive traffic, yes, put it on the root domain in a folder.<p>Yes, Hubspot uses a subdomain, but you&#x27;re not Hubspot.
评论 #40160441 未加载
warrenmabout 1 year ago
Neither is especially <i>hard</i><p>I have done (and do still, sometimes) both<p>Sometimes I even have it in a subdirectory with a subdomain alias to get there<p>I do not think it ever <i>really</i> &#x27;mattered&#x27; - all that mattered was how you wanted to think about it