Forum Moderators: phranque

Message Too Old, No Replies

Affiliate link in Redirect but going to download link.

How can I redirect to a download link, but cookie the visitor with aff id.

         

galloe123

8:40 pm on Sep 7, 2006 (gmt 0)

10+ Year Member



Hello you all.

I have recently been playing around with redirects and have a question.

I want to redirect a link to a download link, but I want to cookie the visitor with a affiliate id.

How would I go about doing that?

Here's the normal redirect as an example:

Redirect /go/productname.html ht*p://www.exampleproduct.com/file.zip

The url above is just an example.

This redirect will pop up the download box, but I want to cookie them with a affiliate id.

Can you help me with this?

Best Regards,
Galloe :-)

jdMorgan

8:56 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On Apache 1.x, you could implement an interstitial page that can set the cookie, and then meta-refresh the browser to the download URL.

On Apache 2.x, I believe you can set a cookie based on the requested URL by using mod_rewrite.

Jim

[edited by: jdMorgan at 8:58 pm (utc) on Sep. 7, 2006]

galloe123

10:19 pm on Sep 7, 2006 (gmt 0)

10+ Year Member



It seems that solution is not as easy.
I spoke with my support about it and it seems difficult.

My affiliate id is a full url. This is one link.
The other link is a download link.

The affiliate link takes me to the homepage of the product that can be downloaded. But that's all it does...take one to the homepage.

I want to have ONE single link on my site that opens up a window that tags the visitor with my affiliate link/url and then loads the download popup box that would normally have popped up if a visitor visited that site's home page and clicked on the download link OR typed in the whole link in the browser.

Help?