Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

Subdomain redirection via users IP address (3 posts)

  1. indiereconchris
    Member
    Posted 2 years ago #

    I am trying to find out if there is a way to redirect users from different IP address from our main site to a subdomain site. I am working with multiple cities and was looking for an easy way to redirect.

    Specifically I am looking to direct users from a geographic location, like users from say Seattle, WA when they go to http://www.indierecon.com/ they are automatically directed to http://seattle.indierecon.com/

    I am not sure if this is even possible, If so, would I have to get a database of IPs from each specific city that I am working with?

    If not, I am guessing I would have to have some sort of main splash page that users select which city they are from and have cookies placed in their browsers using javascript.

  2. SteveAtty
    Member
    Posted 2 years ago #

    It probably is possible but IP addresses don't usually map very well down to city level.

  3. tdjcbe
    Member
    Posted 2 years ago #

    I get that a lot from the network I use. Many sites think I'm in Korea when I'm really in the US.

    There's some companies online that offer such a service. For example:

    http://www.geobytes.com/GeoDirection.htm

    Some Google'ing maybe helpful as well.

Topic Closed

This topic has been closed to new replies.

About this Topic