Why www? Make it no-www!

By | July 1, 2009

When you visit a website it can generally be accessed via “http://www.domain.com” or “http://domain.com”. Having access to both versions will in fact over time harm your search engine ranking.

When you send an email to someone their address generally isn’t “name@mail.domain.com”. It would more likely be “name@domain.com” so why not just remove the www. from all domains.

To do this you would create a 301 redirect so anyone accessing “http://www.domain.com” will automatically be redirected to “http://domain.com”.

Basically to create a 301 redirect just edit your sites .htaccess file and add the following, subsituting domain.com for your domain.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com
RewriteRule (.*) http://domain.com/$1 [R=301,L]

The guys over at no-www have some interesting information as why to remove the www from the domain name. So what are you waiting for, make the internet a no-www internet!