G'day folks:
I originally posted this query on Sitepoint a while back, and thought I had the problem sussed after somebody helped me out, but discovered this not to be the case....🙁
My problem is that I have 2 domains pointing to the same directory on an Apache server, but would like to redirect traffic from one of those domains to a subdomain of the other of these domains using PHP:
Domain 1 = http://www.domain1.com
Domain 2 = http://www.domain2.com
Subdomain = http://sub.domain1.com
Redirect = http://www.domain2.com -> http://sub.domain1.com
If possible; I'd like also to be able to retain/maintain the domain in the URL string even after the redirect has occurred. (i.e.: without displaying the subdomain URL)
If anyone has dealt with any of this before and can help me out, that would be great, as I can't afford another hosting acocunt! :-)
Cheers.
Russ