i have 2 domains (server1.com, server2.com) connected to 1 virtual server (main domain for it is server1.com). i wanted to make a trick:
if($SERVER_NAME == "www.server2.com")
{
header ("Location:http://www.server2.com/xxx/");
}
but $server_name is always eq server1.com -- it doesn't depend on the string written in the browser.
is it any way to do this?
🙂 maciek