Why www is (un)necessary in the web addresses

The other day I sent an e-mail to Earle Martin mentioning that www.perlsphere.net does not resolve. He replied that using www is a cargo cult and as he never advertised it and as he does not want the associated administrative overhead I'll have to stick to perlsphere.net.

While I agree that www is not technically necessary I see so many people automatically typing www as a start of a web address that I think it might worth the extra few lines in the DNS and Apache configuration files. Even when I tell someone to go to search.cpan.org I see many people writing www.search.cpan.org.

But I actually started to write this because of some drawbacks I see when both www.domain.com and domain.com are pointing to the same site.

Some people link or bookmark the www.domain.com and others the domain.com. This makes link-sharing sites (e.g. Reddit, del.ico.us, etc..) to have duplicate entries with the number of votes split between the two. So recently I changed my Apache configuration and now every visitor who arrives to www.szabgab.com is automatically redirected to szabgab.com. So I am not losing the old links and any new links will go to just the szabgab.com address.

Of course this would work in the other way around too, keeping www.szabgab.com working and redirecting visitors from szabgab.com. It does not matter much.

Published on 2009-06-02 by Gabor Szabo
Code::Maven
Python, JavaScript, Node.js, Ruby, and more.

Twitter RSS feed