Options +FollowSymLinks RewriteEngine on RewriteRule ^(.*)$ http://www.xxx.com/$1 [L,R=301]