Support » Plugins » WordPress redirect by country ip with specific page

  • Hello guys

    Does anyone know a worpdress plugin that can redirect users by country ip to a specific page?

    Like if i am from USA and i access then this plugin need to redirect me to the specific page

    Another way which is from india access the same page it will be redirected to in word press page

    I have tested in my local host it will work how to implement the word press specific page

    source code:

    $ip_data = @json_decode(file_get_contents(“”.$ip));

    if($ip_data && $ip_data->geoplugin_countryName != null)
    $result = $ip_data->geoplugin_countryName;

    // echo $result;

    if ($result == “India”)
    //echo “Welcome to India!”;

    header(“Location: http://localhost:44447/zingyminds/package-India.php“);


    //echo “Welcome to United States!”;

    header(“Location: http://localhost:44447/zingyminds/package-US.php“);


    If am clicking the SERVICE page means it will check the ip address with country and redirecting the particular page in word press how

    If anyone Known means help me


  • The topic ‘WordPress redirect by country ip with specific page’ is closed to new replies.