The no-www movement
Starting today I am no longer going to use the www. on my domain name. There are a few reasons I have come to this conclusion. In my opinion my domain is josephcrawford.com the www. is just a sub-domain of my domain. The www. in a domain name was just an abbreviation for ‘world wide web’ and well who calls it that anymore it’s called the internet
I think everyone should follow the no-www.org movement and make your www sub-domain redirect to the real domain name. You can accomplish this by adding the following lines to an htaccess in your root directory.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Please note that I have not figured out a way to make this work by adding it to the apache configuration file, however it will work in an htaccess file. Please take a few moments and join the no-www.org movement with me.
I meant to include this but for some reason added the trackback and failed to mention it here ;( This code was found on this site and I am very thankfull for the mod_rewrite code
7 Comments
Brian
- 04/02/07
- 02:56 AM
My name is linked to a post I made with code to alter wordpress so you don’t loose the changes you made to the htaccess file if you make any changes in wordpress options.
Brian
- 04/02/07
- 02:57 AM
btw I have to digg this post man
Asylum ET
- 04/02/07
- 03:09 AM
- Pingback
[...] reading a friends blog and an article he wrote titled the no www movement I got to looking into this a bit further and found out many interesting things. After then asking [...]
PL
- 04/02/07
- 03:28 AM
Hmmm. Ok, _but_
in taking http://www.josephcrawford.com as your example,
www is a host of josephcrawford.com not a subdomain. Which makes sense when you thinkabout it for a couple seconds
www as a sub-domain would be http://www.www.josephcrawford.com also perfectly valid, you could delegate responsibility for the www ’subdomain’ too in dns. expanding that out, http://www.www.www.josephcrawford.com is also legitimate!
any domain can have subdomains, and each subdomain can have it’s own subdomains.. im sure there is a limit, but im not sure where it is.
Incedentally, phishing sites commonly use this tactic to appear legitimate. buy using a legitimate looking subdomain for their evil gains.
http://www.bankofamerica.com.evilsite.co.fr for instance, pefectly legal dns entry.
moeffju
- 04/09/07
- 05:32 PM
What, no credit?
Joseph Crawford
- 04/09/07
- 05:52 PM
I meant to give you props in this thread, sorry that it did not make it there. I know i did the trackback and will edit this post to include credit since you are the creator






Michael Visser | Making a canonical WordPress site; duplicate content fix
[...] this helps! Thanks go out to Joseph Crawford for his post on the no-www movement and redirection code [...]
[Translate]