different redirect based on incoming link

Discussion in 'HTML & Website Design' started by moe374, Dec 19, 2007.

  1. #1
    Hi.
    I was wondering if it was possible to redirect the user to a different url based on the incoming link.
    For example, if I had 2 ads set up both pointing to the same URL (lets call it www.somename.com), but i need it to go redirect to www.anothersite.com if it came from ad 1, and www.differentsite.com if it came from ad 2.

    Basically I want this for tracking for some affiliate stuff...Can someone please tell me if this is possible and if so the best way to go about doing this. Thank you.
     
    moe374, Dec 19, 2007 IP