Removing www.
By default all websites contain www. This is something that web users have become familiar with, but many websites are now automatically removing the www. from the URL to make their domain shorter and cleaner. According to some websites this also improves your ranking on Google.
To achieve this on an Apache web server, add the following code into a file called .htaccess
CODE:
-
RewriteEngine On
-
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
-
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
[Source: bigbold.com - 1 December 2006]