WordPress.org

Ready to get started?Download WordPress

Forums

newbie question (5 posts)

  1. wpdeveloper121
    Member
    Posted 2 years ago #

    Hello Fellows
    I am new to wordpress i have some task to be done.can i redirect user based on there ip to different wordpress site?please suggest
    will i have to create a plugin or modify what? also want to store information in cookie
    please help i am new still learning

  2. doc4
    Member
    Posted 2 years ago #

    wpdeveloper121,

    This is a little odd, why are specifically targeting an ip address?

  3. wpdeveloper121
    Member
    Posted 2 years ago #

    hi doc thanks for replay
    replay well i have setup 2 sites based on the user ip
    let say i want traffic from asia to different site if its from europe it should be redirected to different site so suppose
    i have main site
    http://www.somesiteforallcountries.com

    http://www.somesiteforallEurope.com
    http://www.somesiteforallasia.com

    so when user comes on http://www.somesiteforallcountries.com
    it will detect the ip and redirect to other site?
    so i wonder how i can do this in wp
    i have tried to modiefied template index.php file
    but it didn't work
    can you please suggest?

  4. Andrew Bartel
    Member
    Posted 2 years ago #

    Check out wp_redirect()

  5. doc4
    Member
    Posted 2 years ago #

    wpdeveloper121,

    If the final goal is a translation issue wouldn't it be a better idea to simply allow the user to select a language?

Topic Closed

This topic has been closed to new replies.

About this Topic