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