I am looking to change a root domain of a site.
The domain in question has several sub domains as aliases.
I would like to use htaccess to redirect the sub domains to the new domain:
eg :
test.domain1.com > test.domain2.com
Looking around I can see that the condition I need is as follows :
RewriteCond %{HTTP_HOST} ^[^.]+\.domain\.com$ [NC]
But I cannot see what the RewriteRule should be.
Any help would be greatly appreciated.