Geolocation redirect

Discussion in 'Programming' started by webmasterplace, Jan 22, 2009.

  1. #1
    Hi,

    I'm making a English version of my Dutch website. Now I'd like to have a system which automaticly redirects non-dutch users to the en.website.com domain.

    So for example when a user from France visits my website.com, he must be redirected to en.domain.com. I know this is possible because many websites use this kind of feature.

    How can I do this?

    Thanks in advance for helping!
     
    webmasterplace, Jan 22, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    You can do it with using the maxmind database of locations and php to detect country by ip then use header location function.
    I am expert at this already helped many people here for a few bux pm me if u cannot
     
    crivion, Jan 22, 2009 IP
  3. Gangsta

    Gangsta Active Member

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    yes it is easy
    you may use php and geoip
    or you may use apache geoip module (better to use this solution I think)
     
    Gangsta, Jan 22, 2009 IP
  4. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    I can develop you an ip to country php script for a small price, having a complete text database also!
     
    hassanahmad1, Jan 23, 2009 IP
  5. webmasterplace

    webmasterplace Peon

    Messages:
    802
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #5
    But would it still be possible that Dutch visitors visit the English section?
    So non-dutch users -> always to en.domain.com
    Dutch users -> domain.com, but can also go to en.domain.com
     
    webmasterplace, Jan 23, 2009 IP
  6. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #6
    yes its possible
     
    hassanahmad1, Jan 23, 2009 IP
  7. webmasterplace

    webmasterplace Peon

    Messages:
    802
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #7
    What's your price? I'll see if it's possible then.
     
    webmasterplace, Jan 23, 2009 IP
  8. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #8
    just $10 for it
     
    hassanahmad1, Jan 25, 2009 IP
  9. webmasterplace

    webmasterplace Peon

    Messages:
    802
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Job taken by another member.
    Closed!
     
    webmasterplace, Jan 25, 2009 IP