11-23-2018, 03:36 AM
supaul Wrote:I guessing that the people comes to your landing page and then they goes to the product page, right?
Upload this code by creating a PHP redirect script in your root domain.
Code:<?php
$a = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$_SERVER['REMOTE_ADDR']));
$countrycode= $a['geoplugin_countryCode'];
if ($countrycode=='US')
header( 'Location: https://www.youradnetwork.com/the-original-US-offer' ) ;
else if ($countrycode=='GB')
header( 'Location: https://www.youradnetwork.com/the-UK-offer-of-your-choice' ) ;
else if ($countrycode=='CA')
header( 'Location: https://www.youradnetwork.com/the-CA-offer-of-your-choice' ) ;
else
header( 'Location: http://forums.seomotionz.com' ) ;
?>
I found this code while searching through the web and other forums.
In this code change the urls according to your needs. The US offer is for original page, UK-CA are to be redirected to the original one. And the last one which is showing the forum url, is for the rest of the world which will be redirected to it.
The code is extremely helpful, thanks.