• Hey all,

    Is there an easy solution to forward visitors from my webpage to another website.

    I want to be able to forward US and Canadian visitors to Amazon.

    Any idea how to do this?
    Thanks in davance

    Tc

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can do this either by using plugin or using few libraries.
    I think plugin is good option.

    1.Install GeoIP Detection plugin.It will allow you to use few functions.
    2.get ip of user by geoip_detect2_get_client_ip();
    3.use ‘geoip_detect2_get_info_from_ip($ip, $locales = array(‘en’), $options = array());’
    It will give you location of user where $ip is result of 2nd step.
    4.after getting location use wp_redirect( $location);exit; to redirect users of specific locations.

    Thread Starter theconsul

    (@theconsul)

    i’ll try that

    thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘forward visitors to another webpage’ is closed to new replies.