1: 2: 3: 4:
RewriteEngine RewriteCond % {HTTP_HOST} ^domain2.com$ [OF] % Van RewriteCond {HTTP_HOST} ^ www.domain2.com $ RewriteRule ^ (. *) $ „HTTP \: \/\ /www \ .domain1 \ .com \/$1“ [R=301, L]