:: How to setup domain name with www redirect to without www in htaccess
+ edit .htaccess file

vi .htaccess

add these line:

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

 
:: Links
+ Google
+ StackOverFlow