Advanced HTACCESS Subdomain Redirection (foo.dom2.com to foo.dom1.com)
I have domain1.tld and domain2.tld. Domain1.tld is the primary domain name and domain2.tld is merely an alias. I have domain2.tld successfully redirected to domain1.tld, via HTACCESS, but I want all subdomains on domain2.tld to likewise redirect to their parallel subdomain on domain1.tld, dynamically. For example: bla.domain2.tld should redirect to bla.domain1.tld, and foo.domain2.tld should redirect to foo.domain1.tld. This solution needs to be dynamic, not hard-coded to specific subdomains. Haha, I guess what I'm writing is a catch-all, one-to-one, subdomain-inclusive, alias domain