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