Removing "www." From Your URL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
Create a file called .htaccess and add the snippet, replacing domain.co.uk with your actual domain name. On the second line the full stops (periods) are escaped with the backslash - make sure you do the same. E.g. a .co.uk domain would be escaped as .co.uk
Microsoft Windows users will not be able to create a file called ".htaccess" on their computer. Upload the file as htaccess.txt and rename it on your server.
Code provided by no-www.org
Category: Other
Rating:
Added: 21st November 07 by Jem
Bookmark At: StumbleUpon, Digg

Handy Stuff
Downloads
Friends of 'TT'
Resources