Wayne 2012-05-17 14:09:12
I am running a website with more than one domain pointing to it
and was wondering if there is a way to have PHP automatically
change the logo that is displayed depending on which domain
the visitor has typed in.
Is this possible ?
Thanks in advance
Paulus magnus 2012-05-17 14:09:15
Yup, use the $_SERVER[‘HTTP_HOST’] information.
Dmitry ruban 2012-05-17 14:09:17
I can use $HTTP_SERVER_VARS[‘SERVER_NAME’] to define what did user type in
It goes to apache, and you’re going to set UseCanonicalName Off in apache
Markus g. kl t 2012-05-17 14:09:19
By redirection or by IP-Pointing?
In the first case you will need to add a variable to the URI in the
second case you can use the servername to base your choice.
Every time I jump on the bandwagon all its wheels fall off.