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