Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
Redirecting offers to the right offers
#1
Here is a query of mine. I have been promoting some offers which converts in few selected countries such as US and Canada.

Now, here is what's happening. The link to the products are present in my forum signature section. So, people are clicking on them anyway. But as the products are just for US and Canada if a person from other nation clicks on them. They are redirected automatically to some random product. What should I do to put them in my desired product?
Reply
#2
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.
Reply
#3
What should be the name of the .php extension file?
Reply
#4
ninja21 Wrote:What should be the name of the .php extension file?

Its completely your choice.
Reply
#5
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
Performer 8 Male Enhancement - Is It Safe & Effective? Read It Before ...
╰┈➤PURCHASE LINK :- ╰┈➤Facebook Page’s:- ╰┈➤MUST SEE>>>>>>...JackiRuffner — 12:44 PM
"From Maker to Munch: CBD Gummies Made Simple"
Makers CBD Gummies - Makers CBD Gummies are to be had for buy online and in pick out reta...mistyyany — 12:27 PM
Discovering Memphis: Gateway to the Blues - How Far is Memphis from Na...
Nestled along the banks of the mighty Mississippi River, Memphis stands as a cultural bea...Tourreview — 11:32 AM
Are You Ready To Performer 8 Male Enhancement ? Here'S How
PURCHASE LINK - ➢Product Name — Performer 8 Male Enhancement ➢Main Benefits — improve ...boosteupe — 11:17 AM
Links to the internal pages, to get ranked !!
Around 10-15 active DA 50+ links can be found to my homepage. Now, since the purchase o...jahnvi arora — 11:17 AM

[-]
Follow us on Facebook