I have a dedicated server (apache, php, mysql)
There is a primary domain (let’s call it http://www.domain1.com) that actually holds all the files like any other regular web hosting account. Another domain (call it domain2.com) needs to forward to it, but with masking.
So domain2.com/filename.php, domain2.com/filename.php/432/r23-gjfdla-fdjslaf/ all need to show the corresponding content of domain1.com’s content, BUT the browser should still show domain2.com instead of domain1.com, and it also has to be detectable by $_SERVER[‘HTTP_HOST’] so my server knows which domain was used to contact the website.
This is because I have 2 clients who are in a partnership, so they would like each visitor to retain whatever URL they entered for independent presentation but make the content unilateral without having to update two sites at once.
1 Answer