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