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