1: 2: 3: 4:
RewriteEngine On RewriteCond %{HTTP_HOST} ^domain2.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain2.com$ RewriteRule ^(.*)$ "http\:\/\/www\.domain1\.com\/$1" [R=301,L]