Maybe that:
RewriteCond %{HTTP_HOST} ^(.*)\.domain1\.com$ [NC]
RewriteRule ^(.*)$ http://%1.domain2.com/$1 [R=301,L]
1
solved Redirect all subdomains of a domain to an other domain [closed]
Maybe that:
RewriteCond %{HTTP_HOST} ^(.*)\.domain1\.com$ [NC]
RewriteRule ^(.*)$ http://%1.domain2.com/$1 [R=301,L]
1
solved Redirect all subdomains of a domain to an other domain [closed]