You are here: Re: Changing content for .com site « PHP Programming Language « IT news, forums, messages
Re: Changing content for .com site

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация