Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect anyone from AUS to different page

Discussion in 'Website Design Forum:' started by philjohns, Mar 8, 2011.

  1. philjohns

    philjohns Senior Member

    Hi guys,

    I've been asked to set up a redirect on a website so that anyone visiting domain.com from Australia will be redirected to domain.com/aus

    Anyone know if/how it can be done? Had a quick google - looks quite in depth!
     
  2. Djsounds02

    Djsounds02 Junior Member

    The only help I can give is informing you it can deffinately be done google for a start do it.
     
  3. Levi

    Levi Moderator Staff Member

    possible php based solution

    Basically you need to know the ip range for the country and then use that as the basis for the redirect
     
  4. CSparkes

    CSparkes Senior Member

    We do this on our website

    Flexifoil Kites, Power Kites, Traction Kites, Kitesurfing Kites - Leading Manufacturer Kites, Kite Landboard, Kite Buggy

    1)need to find IP range. Way we do this is we have a database storing this info with a country code assigned.

    2) When user access's site it looks up there IP in table and gives a country code and stores in cookie for 20 mins to reduce server load. If for example it was "AUS" it would redirect to new address.

    We had to buy the IP range table for around 99usd.

    In coldfusion a Application file is looked at by every page so easy for each page to do check. Not sure if anything in PHP exists like that.
     

Share This Page