I have a site that is up and running and have gotten another domain and need redirect any visit to exampleA.com
or any sub-domain of it, to a page where I can check the requested page's sub-domain to a dynamic list of sites and if its a match send it to that sub-domain on exampleB.com
, and if not send it to the main site on exampleB.com
. there will be no site at all on exampleA.com
is is just a shorter version of the main domain. The main site is a wordpress site.
What I have.
I have exampleA.com
and exampleB.com
with exampleB.com
having sub-domains.
What I need.
redirect *.exampleA.com
to exampleB.com/somePage/?from=*
After it gets to exampleB.com/somePage/?from=*
I can check the $_GET
info. but I'm not sure how to set the arbitrary sub-domain to the $_GET