Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ [example2.com...] [R=301,L]
You might want to look into proxying domain2 through domain1, but of course, all connections would then pass through both servers, and the log files on domain2 would always show domain1 as the requestor.
JIm