TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 onemiketwelve大约 1 年前
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 条评论

nickfromseattle大约 1 年前
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 未加载
warrenm大约 1 年前
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