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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Subdomain Me - add www with an A record

17 点作者 bradleyjoyce超过 14 年前

10 条评论

achew22超过 14 年前
It is really not a good idea to let your naked record go to a 3rd party. If you need your root to be an A name, go with a DNS provider that will do URL redirects. If you trust them with DNS resolution of your domain you can trust them to not go crazy with your root record.<p>EDIT: If you are looking for a host that will do this, <a href="http://NameCheap.com" rel="nofollow">http://NameCheap.com</a> is how I do it but I understand GoDaddy and Hover does it too. Seriously... go with a reputable registrar that has these simple features it will pay off in the end.
评论 #2069463 未加载
评论 #2068840 未加载
falseflags超过 14 年前
This is pretty much the greatest setup for a mass-lemonpartying known to man.
jamuraa超过 14 年前
That's weird, I usually go the other way - I redirect the www to the naked domain.
评论 #2069150 未加载
评论 #2069072 未加载
评论 #2069071 未加载
评论 #2069237 未加载
twir超过 14 年前
Forgive my ignorance, but when is this useful?<p>Don't most self-respecting DNS providers allow you to do this?
vinhboy超过 14 年前
If you have Godaddy, they allow you to forward your domain to www for free. I do that with my GAE apps.
评论 #2068885 未加载
bugsy超过 14 年前
What the website advocates, redirecting site traffic through them, is a very bad idea. If you don't know why this might be so, stop and ask yourself why you are in charge of modifying the zone records.
makethetick超过 14 年前
It's a pretty clever idea, I've come across loads of sites that have a naked domain but no www.<p>As clever as it is though, it serves no real world purpose, anyone clever enough to setup up their own domain will be able to set up a www subdomain, be it dns level or using a 301 redirect.
gcr超过 14 年前
I go with enom. They allow wildcard subdomains, so I just ask nginx to 301-redirect the .www to the root<p><pre><code> server { listen 80 default; server_name your_domain.net; rewrite ^ http://www.your_domain.net$request_uri? permanent; }</code></pre>
Fileformat超过 14 年前
I did this too (redirect2www.com/74.53.18.72). So easy I'm surprised no one at Google/etc has done it with a slick IP address like they did for DNS.
upinsmoke超过 14 年前
Works with Google App Engine?
评论 #2068978 未加载