Forums

different head for forwarding dowmain (1 post)

  1. cman johnny
    Member
    Posted 3 months ago #

    Hi there,

    I'm wondering if there is a simple way to load a different header file (and other files - footer etc) if according the the domain.

    My situation is I have a site which is bilingual. One domain for each language.
    I cant do a multi-site because I need to develop the site in a sub directory then move it ( i think). So I'm thinking of making the template have something like
    if domian = englishdomain.com then { include (english_header.php);}
    else if domain = frenchdomain.com the { include (french_header.php);}

    Is this possible?
    This way every page decides what header and foot to use according to the correct domain.

    Any help is much appreciated.

Reply

You must log in to post.

About this Topic