Is this possible? (Different domain = Different Content)

Discussion in 'HTML & Website Design' started by allthegoodnamesweretaken, Aug 21, 2008.

  1. #1
    So lets just say I have a site-- we'll call it Google.
    www.google.com will go to the site no problem.

    But then I decide to buy a new domain...we'll say www.google.co.uk.
    I don't want to have the both of owning two websites because I want the same content. And I don't want a redirect/addon.

    This is because Google.com's banner has 'Google.com' in it-- if people go through the .co.uk, and the banner has the .com version in it that would be silly.

    So is it possible to have two different domains, on the same site, but depending on which domain you load it shows a certain banner?

    (I'm quite the newbie when it comes to this, so i'd probably guess a mix of .htaccess and .css or something?)

    Thanks for any help in advance :)
    (and yes, i know i've written this quite confusingly, it's pretty hard to describe :p)
     
  2. xomero

    xomero Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    You can use PHP or ASP to identify the domain on the page, based on that you can show different banner on the same page.
     
    xomero, Aug 21, 2008 IP