Home > Programming, Servers & Scripts >

What are the needed values in this geo-redirect php script & where do I place it ? (3)


03-09-2013 05:19 AM #1 sandyone (Member)
What are the needed values in this geo-redirect php script & where do I place it ?

I had support install the MaxMind GeoLite Db for country.

I don't know what the values are that I use in the highlighted areas of the image of Andy's geo-redirect php script, below:

Also, where do I save the php script? - VPS root or in the cpanel of the individual domain(s) of my WHM VPS?

Thank you for any tips and help.


03-09-2013 12:33 PM #2 caurmen (Administrator)

The highlighted strings are fine (except for the last http:// address, which you'll want to change to wherever you want your default redirect to go to.

You'll want to change the URLs in the first line of each "case" statement - so, for example, change the first one to

Code:
case'US':
$redirect[1]="http://sandystrackingserver.com/?trackid=LOADSACASH";
where "http://sandystrackingserver.com/?trackid=LOADSACASH" is the tracking URL of your US offer.

Save the script in a web-accessible location - other than that it doesn't really matter. You'll be sending your traffic to this script first.


03-09-2013 08:36 PM #3 sandyone (Member)

ahh OK I misunderstood the color schemes shown in Andy's original share of the script.

I was thinking that the words in red color needed to changed to some value.

So I only need to add the last URL.

Gracias Caurman!


Home > Programming, Servers & Scripts >