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