I've got two sites which are hosted on different servers. 1) domain-one.com 2) domain-two.net
I installed a WordPress blog on site one at domain-one.com/blog/. I want visitors of domain-two.net to be able to access the blog installed on site one via domain-two.net/blog/.
I have a WordPress plugin called "Domain Theme" that changes the look of the blog depending on the domain the visitor is accessing it from. This plugin determines where the visitor is coming from via the $_SERVER['SERVER_NAME'] variable.
I have an .htaccess file in domain-two.net/blog/ redirecting requests to domain-one.com/blog/. Going to domain-two.net/blog/dog.php actually shows what's at domain-one.com/blog/dog.php.
Unfortunately, the Domain Theme plugin for WordPress can't tell when it's being accessed from domain-two.net because after the rewrite in .htaccess, the value of $_SERVER['SERVER_NAME'] is domain-one.com (not domain-two.net). Because of this, I see the same theme when I access the blog from either domain.
Is there a way to redirect requests from domain-two.net that lets the plugin know where they're really coming from?