top | item 7961415

Why use www?

408 points| bergie | 11 years ago |yes-www.org

144 comments

order
[+] adrianmacneil|11 years ago|reply
I used to be strongly in the no-www camp for aesthetic reasons, but have since come around. There are legitimate reasons why having www (or any subdomain) is important in any large site.

The CNAME argument is obsolete since most DNS providers support ALIAS records now.

The static no-cookie argument doesn't really matter since you could always serve static content on a separate domain altogether (ex: fbcdn.net).

However, if you want to run hosted services on subdomains, you run into an important security issue. For example, say you have Zendesk hosted on support.mysite.com. You don't want to leak session cookies from mysite.com to support.mysite.com. In most browsers, you can just specify the cookie domain and it will only be sent to the root domain. However, NO versions of IE respect this (even IE 10+) [1]. So your IE users will always leak session cookies to hosted services on subdomains. In any reasonably secure site, this is unacceptable (especially when you start using other hosted services for status.mysite.com, careers.mysite.com, etc etc).

Unfortunately, this is pretty much impossible to work around, unless you want to ban IE users from using your site entirely.

Solution: Just use www (or any other subdomain, if you want to be different) from the start, and save yourself the headache of migrating later.

[1] http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/winin...

[+] ecesena|11 years ago|reply
What about internal services with subdomains? What if, for instance, you have myservice.mysite.com and you want to share cookies among www and myservice?

I mean, would you recommend to set cookies with domain mysite.com and thus have a different domain for external services, like support.mysite.net, or...? (genuinely asking, I don't mean to criticize, sorry if the english is not perfect :)

[+] Aardwolf|11 years ago|reply
So the only argument remaining, is IE?
[+] Tomte|11 years ago|reply
Me as well.

The really big argument for me was: laypeople just expect the "www". Losing it means having to repeat and explain things. It's just not worth it.

[+] walden42|11 years ago|reply
Leaking cookies to subdomains IS a problem, but it shouldn't be too big of a deal security-wise if they are encrypted (as they usually are).
[+] AhtiK|11 years ago|reply
Performance penalty is no longer an issue with AWS: CloudFront support for root domain/zone apex has been there since June 2013 [1].

DNSMadeEasy has ANAME for somewhat similar purpose [2].

It's worth noting that AWS CloudFront works ONLY with AWS Route 53 for the proper latency-based routing with root domains. Yes, DNSMadeEasy ANAME works with CloudFront too but it's not smart about returning the closest edge to the user.

[1] http://aws.amazon.com/about-aws/whats-new/2013/06/11/announc...

[2] http://www.dnsmadeeasy.com/press-release/dns-made-easy-intro...

[+] tszming|11 years ago|reply
The issue with cookies mentioned in the article is still valid, which also affect performance.
[+] the_mitsuhiko|11 years ago|reply
> Performance penalty is no longer an issue with AWS: CloudFront support for root domain/zone apex has been there since June 2013 [1].

And it does it through an hardcoded alias and not a cname. How clever.

[+] akerl_|11 years ago|reply
For the opposite case:

http://no-www.org/

[+] psychometry|11 years ago|reply
OK, but that doesn't address any of the issues presented in the Yes WWW article posted here. I don't even see an argument against WWW other than convenience or aesthetics.
[+] lucisferre|11 years ago|reply
Does that site actually make a case or do they just not like the "www" being there?
[+] excitom|11 years ago|reply
I dislike www since it is the world's worst acronym, having three times as many syllables as the words it replaces.
[+] janaagaard|11 years ago|reply
In Denmark we usually say V-V-V when we spell it out. Confusing? Defenitely yes. But we also call a BMW a BMV and a WC is just a VC.
[+] pling|11 years ago|reply
That's why, at least in the UK, we use "dub dub dub".
[+] hmsimha|11 years ago|reply
When saying your domain name aloud, you never have to say www if your naked domain automatically redirects to your www. subdomain. Most of the time when people say it, it's completely unnecessary. I suppose you could use another subdomain to fulfill the same purpose of 'www' but 'www' is such a common convention that you would then probably need to redirect your users from www to whatever other subdomain you use.
[+] zephjc|11 years ago|reply
I've liked to saw 'wa' (pronounced like わ/ワ) since the '90s but I've never used it in serious conversation.
[+] Aardwolf|11 years ago|reply
It's not a U, it's not even a vowel, and if it's anything double, it's a double V. Half of it certainly does not look like a U.
[+] cyphunk|11 years ago|reply
> You should use www because today you have a small web site, and tomorrow you want a big web site. Really big.

nope, sorry. i have no desire for my sites to be big. i prefer rememberable to a few, over big. next. can someone tell me why these people are actually pushing www use? So far the reasons they state make no sense. It sound's like a bunch of grammar addicts getting into the technologist scene.

> Twitter, for instance, which does not use www, had to buy new domain names just for static content.

and, who cares? If you become a really "big" website I guess you can afford another domain name.

> You may not run into any of these issues today, but as your web site grows, you eventually will.

What I learned from this. When my site get's so big that I can sniff coke off of male escorts I should hire someone to deal with purchasing more domains for our cookie content issue. thanks, solved.

[+] adventured|11 years ago|reply
"You should use www because today you have a small web site, and tomorrow you want a big web site. Really big."

Don't tell these little sites: stackoverflow.com, rapgenius.com, foursquare.com, twitter.com, instagram.com, ask.fm, wordpress.com, imgur.com, vimeo.com, hootsuite.com, github.com

[+] _greim_|11 years ago|reply
No reason is given why you should use www. The only arguments presented here are a couple technical issues with having naked domains. But you could have w.example.com or foo.example.com and address those same problems.
[+] jpollock|11 years ago|reply
You use www for the same reason that the ftp server is ftp.X and the mail server is mail.X. This allows organisations to have logical service locations separate from their current configured location.

So, www is your web service.

If you'd like a proposal, add a new type of DNS record, like the MX record, specifically for HTTP.

[+] protonfish|11 years ago|reply
No, that is what the TCP port number is for.
[+] esbonsa|11 years ago|reply
I thought the port would take care of this
[+] d0ugie|11 years ago|reply
Perhaps fewer would avoid using naked domains if we hadn't settled on the visually widest and verbally longest to recite letter. Kudos, twitter.
[+] Thiz|11 years ago|reply
A better solution instead of www would be:

web.example.com

The way it should have been since day one.

[+] mhartl|11 years ago|reply
MIT still uses it:

    $ curl -I mit.edu
    HTTP/1.1 302 Moved Temporarily
    Server: AkamaiGHost
    Content-Length: 0
    Location: http://web.mit.edu/
    Date: Mon, 30 Jun 2014 03:12:18 GMT
    Connection: keep-alive
(It looks like they were a little sloppy, though; that should probably be a 301 instead of a 302.)
[+] grkvlt|11 years ago|reply
Since the original TBL web server was at 'info.cern.ch' I think everyone has been Doing It Wrong since then, and we should replace 'www' with 'info' everywhere. I'm off to create 'info.not-www.org', I think...
[+] endergen|11 years ago|reply
Cloudflare recently announced support for CNAME functionality from naked domains. See: 'Introducing CNAME Flattening: RFC-Compliant CNAMEs at a Domain's Root' http://blog.cloudflare.com/introducing-cname-flattening-rfc-....

Obviously www. is extraneous if you can get the CNAME functionality.

[+] seoguru|11 years ago|reply
http://yost.com/misc/nix-on-www.html

"W" is a letter that is not one syllable, for that would be too few, a letter that is not two syllables, for that too would be too few, but a letter, in fact the one letter of all twenty-six that insists upon blathering on and on in its attempt to twist the tongue and overtax the ear, extending to the full three, yes three--three syllables, the legal alphabetical maximum. But wait, my friend. That is only the beginning. We go on to treble the damages by repeating this freak letter, this monstrosity that is one thing, claims to be two other things, but is really three things, not once, not twice, but a full three times, in a nonometric rhapsody fleshed out to the nines, a compound triplicate triumphant cat-o'-nine-tails tongue-lashing, a nonotuple witches' syllabic brew of treble, treble, toil and trouble. It is enough I say! Nine times enough, in fact. :-)

[+] hexleo|11 years ago|reply
In China, for some people if your web site doesn't use www, they will confused. I told him a domain name, he will add www before. orz
[+] lnanek2|11 years ago|reply
This is a nice piece about engineering. However, it would be nice to see an A/B test for what the users prefer. The technical drawbacks don't seem large compared to, say, +1% better conversion rate for people seeing your URL in media and typing it into a browser.
[+] wmeredith|11 years ago|reply
You could easily promote the naked domain and forward traffic from it to the www version of your site.
[+] joeyespo|11 years ago|reply
> You should use www because today you have a small web site, and tomorrow you want a big web site. Really big.

Isn't this pre-optimizing? You can use naked domains today and redirect tomorrow when it becomes an issue (IF it's still a technical issue we need to worry about at that time).

301 is built for this.

Or, when you do become big, this becomes a tiny issues.

> Twitter, for instance, which does not use www, had to buy new domain names just for static content.

Do you think Twitter struggled to afford this in any way?

> You may not run into any of these issues today, but as your web site grows, you eventually will.

Again, a big company can easily afford this. Do things that don't scale. Worrying about www should not be your initial concern.

[+] kolev|11 years ago|reply
URLs without www look uglier to me. The www gives you a visual filler space between the cryptic http:// and the domain, but, again, who cares about URLs nowadays? Also, www makes easy to parse out URLs in text. In addition, people will always try www even if your canonical domain is without it resulting possibly in a redundant redirect and/or dual versions of URL being in existence. Lastly, just like www, .com is here to stay. After so much investment in www and .com from advertising, education, etc., don't expect billions to switch away so easily.
[+] qu4z-2|11 years ago|reply
Personally I find www. no less cryptic than http://. Additionally http:// is hidden in many browsers these days, so you're left with just {,www.}example.com/ and don't need the filler.

Regarding "who cares about urls nowadays?", clearly the people in this thread making passionate arguments for and against a leading www. care :)

[+] everydaypanos|11 years ago|reply
Still in no-www camp!
[+] serf|11 years ago|reply
as long as the translation and redirection is done by the browser somewhat seamlessly (which modern browsers seem to have no problem with on correctly setup websites), I am too. Aesthetically 'www' has never been that pleasant looking.
[+] mhartl|11 years ago|reply
It is possible to do 301 redirects at the registrar level in a way that preserves the full path, including query strings? This is, I'd like to arrange for

    example.com/home?a=foo&b=bar
to redirect to

    www.example.com/home?a=foo&b=bar
Is there any way to do this without using something more specific like mod_rewrite?