Forum Moderators: skibum

Message Too Old, No Replies

How do you do your affiliate link redirects?

Wondering about the best technical way of doing it.

         

HughMungus

4:16 pm on Aug 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Meta refresh? PHP header? What's the best way to turn an affiliate link into an internal link with a redirect (using a database)?

TIA

Craig_F

1:37 pm on Aug 25, 2004 (gmt 0)

10+ Year Member



anyone know the best way for this? I'm very interested but have no clue.

in addition to HughMungus request I'd like to know the least technical way to do this since I may not be able to pull off the technical version.

tia!

HughMungus

5:54 pm on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I set it up over the weekend. I use a database that has a list of affiliates, each with a unique number identifier. My links look like, "?id=****" where xxx is the affiliate's id in the database. When clicked, the page references the database, gets the link for that affiliate, reloads the current page using target="_self", and uses a header redirect (PHP) to send the browser to that page.

The simple way to do it is to setup a page for each of your affiliate links with a meta refresh, e.g.:

<HTML><HEAD><TITLE></TITLE><meta http-equiv="refresh" content="1; url=http://www.widgets.com/"></HEAD><BODY BGCOLOR="#ffffff" LINK="#3261A6" ALINK="#999999" VLINK="#000000"></BODY></HTML>

shman

6:14 pm on Aug 25, 2004 (gmt 0)

10+ Year Member



Forgive me if this sounds too basic a question but how do you connect this to a database?

HughMungus

6:21 pm on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you currently using a database for your site at all?