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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Add “www.” to my domain, or not?

16 点作者 _dt47将近 9 年前
Old question, but I would like to hear what you have been doing with your projects lately.<p>Any thoughts?

11 条评论

meesterdude将近 9 年前
The main reason to use www is because you can&#x27;t CNAME a apex domain, but you can on a subdomain. Sometimes this matters - and other times it doesn&#x27;t. For my day job at an internet hosting company, we use www for our clients so we can CNAME their locations.
评论 #12203731 未加载
niftich将近 9 年前
Obligatory:<p>[1] <a href="http:&#x2F;&#x2F;no-www.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;no-www.org&#x2F;</a> (scroll all the the way down)<p>[2] <a href="http:&#x2F;&#x2F;www.yes-www.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.yes-www.org&#x2F;</a>
NeutronBoy将近 9 年前
If your TLD is recognisable (e.g. .com, .net, .org) then no need - people will recognise it as a domain.<p>However, if you&#x27;ve got a new-fangled TLD (.recipies, .shoes, etc) then use &#x27;www&#x27; - without context, people aren&#x27;t going to recognise [redacted] as a URL, but they will recognise [redacted] as one.
walrus01将近 9 年前
Your DNS should always have both that go to the same httpd, or is this a question about advertising, business cards etc?
UnoriginalGuy将近 9 年前
I add it, but redirect away from it. Some users have it engrained to add the www.* to everything, giving them a DNS error isn&#x27;t ideal.
WheelsAtLarge将近 9 年前
Yes,it&#x27;s simple enough to add to the DNS and have both. Many of the everyday users I&#x27;ve worked with seem to want to add it to all the browser urls they type in. It doesn&#x27;t matter if the original has it or not.
skiltz将近 9 年前
Personally I&#x27;ve been ditching the www but either is fine. Pick one and stick with it, don&#x27;t mix and match. Always use https.
评论 #12199144 未加载
lovelearning将近 9 年前
If you type any word in Chrome&#x2F;FF and press Ctrl+Enter, they automatically prefix &quot;www.&quot; and suffix &quot;.com&quot;. It&#x27;s a shortcut a lot of users have got used to by now. So, at the very least, make sure www doesn&#x27;t give a 404. I set up DNS to redirect my main domains to their www.
exolymph将近 9 年前
I use www for the canonical domain and redirect the bare domain to the www version.
AndyMcConachie将近 9 年前
Why not just use both and have them host the same things?<p>It&#x27;s what I do. example.com www.example.com<p>They both host the same thing and have the same TLS cert.
评论 #12199466 未加载
MattBearman将近 9 年前
I personally use www. simply for the symmetry. To me, www.bugmuncher.com looks a lot nicer than just bugmuncher.com