Forum Moderators: coopster
when passing the following URL:
www.mysite.com?redirect.php?m=ama&url=http://www.affiateexample.com/product_sku/12312
I need it to go to www.affiliatesite.com main page and drop my referral cookie, then redirect again to the actual destination page. This my attempt at deep linking affiliate links that don't support deep linking.
An example would be great!
Thanks in advance,
Triumph
open a socket or use curl and hit the first page then send them to the deep page, you can dump the return page you get back, just use output buffering or something and clear the buffer then use header and send your visitor to the actual page.
this really might not work well and I can see there being a few, um, intricacies involved. You should test something like this on a site you control so you can look at logs and whether it tracks properly.
another thing might be if there is no link to this deep page from the main page then it could look suspect. You don't want to get booted out of any aff programs.