I am trying to use a 301 redirect to move all subdomains on a domain to another domian. Also, if there is a trailing directory, or filename I need to carry that over too. So I need to move *.original.com\randomdirectory\randomfile.php to *.new.com\randomdirectory\randomfile.php I have it working by kind of hacking it out, looking at examples; but was hoping to find "the correct" way to do this, from someone who really knows it. Thank you, Trev
Put an .htaccess on each subdomain root with. RedirectMatch 301 ^(.*)$ http://newdomain/$1 Code (markup):
I cant put it on each subdomain because there are probably thousands of them, and a lot of them I don't know what they are. In talking with people, it seems that this is probably not easily done, for a wildcard situation. Thank you for the reply. Regards, Trev
The simplest way is to point all your hosts to the same folder/location and configure just a single .htaccess.