I'm using an ad tracking service called Ad Minder and they have given me the following cgi script to use when using goto.com:
#!/usr/local/bin/perl
($username,$adcode) = split(/&/,$ENV{'QUERY_STRING'});
print "Location: http://www.adminder.com/c.cgi?$username&$adcode\n\n";
If I used the following url...
http://www.mysite.com/track/goto.cgi?aw12345&iccg2cjob
...then it will go to the above script, refer back to the adminder site and see what page should be displayed. The problem is, the final page has an ugly url (http://www.mysite.com/track/goto.cgi?aw12345&iccg2cjob).
So, I want to use a php redirect page, with an initial url like...
www.mysite.com/track/goto.php?aw12345&iccg2cjob
...but then once called, it will redirect to www.adminder.com/c.cgi?aw12345&iccg2cjob which will then redirect to www.mysite.com, giving me a clean looking url.
This must cater for many keywords, so the php must strip out the username and adcode.
I hope this makes sense! Surely this must be a simple task in php.
Any suggestions?
Thanks,
Jon