RewriteEngine on RewriteCond %{HTTP_HOST} ^oldsite.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.oldsite.com [NC] RewriteRule ^(.*)$ http://newsite.net/$1 [L,R=301,NC]
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^oldsite\.com$ [NC] RewriteRule ^(.*)$ http://newsite.com/$1 [R=301,L]