View Single Post
Old 11-06-2008, 03:31 PM  
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Quote:
Originally Posted by WiredGuy View Post
Have all your webpages link to a redirection script instead of straight to the sponsor.
Then that script will check the IP address and you define a url for each country (or cluster of countries).

Done. I use Maxmind's database and wrote my own script in perl to do the legwork, its about 100 lines of code, not that much at all. I'm sure there's a few php versions floating around for free, but being the hardcore perl coder that I am, I wrote my own script.

WG
Do all your sites link to one domain that does the redirection, or do you use multiple domains? I'm using an Alias in Apache so all outgoing links are going through the domain that is being viewed, but not sure if it's better/worse to use a single domain.
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote