Posted by Rik on 05/10/06 12:25
Geoff Berrow wrote:
> I have two urls pointing at the same site. The client wants to change
> the logo depending on whether the url is .com or .co.uk The logo is
> in a header file that is included in all sites.
>
> The site is not up yet so I can't test anything and I'm not sure how
> the hosting company will set this up. Which server variable will be
> best to use to detect .com or .co.uk? HTTP_HOST? Or is there
> another way?
If:
- the 2 sites are on the same system.
- you use apache
You could make 2 virtual hosts and detect that using
$_SERVER['SERVER_NAME'].
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|