PHP Header Redirect

Discussion in 'Affiliate Programs' started by LazyD, Nov 17, 2006.

  1. #1
    Hello all, I run a credit card, loan and insurance website and im looking to do a PHP redirect system on mysite. Currently the links to the credit card offer look very "affiliate" as they go through http://CardOffers.Com/manage/track/e?=(insert random numbers) I would like to have the links on my site go to a page on my server like /GetApp.php?Id=(insert id #) and that page will have a redirect based on the cards id which is stored in a database. My question is, will that affect tracking of clicks and sales?
     
    LazyD, Nov 17, 2006 IP
  2. aras

    aras Active Member

    Messages:
    533
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Header redirect will leave a http referer so i guess not.
     
    aras, Nov 17, 2006 IP
  3. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thats what I think too, anymore opinions? Also, would anyone be willing to show me how they use htaccess for CJ URLS?
     
    LazyD, Nov 17, 2006 IP
  4. drugoon

    drugoon Guest

    Messages:
    702
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Why not a header redirect? It shouldn't affect the tracking of clicks and sales but your users will still see the target url in the adress bar... you can also try a javascript location.href redirect or the meta refresh tag... or you can use frames... i think these are all the options...
     
    drugoon, Nov 17, 2006 IP
  5. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thats what im using for the Credit Cards, a header redirect, I decided to use PHP Get to grab the CardID passed along and it redirects to the URL in the DB for that specific CardID.

    I need for CJ links, and im not sure how to accomplish that with 60+ unique CJ links..
     
    LazyD, Nov 17, 2006 IP
  6. motheninja

    motheninja Peon

    Messages:
    302
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    don't use htaccess for CJ urls.

    in your htaccess file create a rewrite that will point to your php script and pass parameters, that way when you add a new sponsor / change a url you just need to modify your php file and not your htaccess
     
    motheninja, Nov 18, 2006 IP
  7. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    motheninja, I think im doing what your talking about...Not sure though... take a look at - http://getcredit365.com/services/loans/personal.html on the right side at the Discover card ad, you can see in the Status bar that the URL looks like this:
    http://getcredit365.com/offer/CJ URL HERE/
    Code (markup):
    and thats a mod_rewrite URL of
    http://getcredit365.com/getoffer.php?link=CJ URL HERE/
    Code (markup):
    and the PHP simply gets the URL after the link= and redirects that via PHP header....

    Its closer to what I wanted, as its an "on site" link, but I was hoping I could almost - completely - mask the those links without having to add them 1 by 1 to htaccess, or some other file as I saw demonstrated in another thread. Am I SOL?

    Also, it gets hard to implement my above code because when I use CJ's Smartzone, which essentially rotates ads, it runs on JavaScript and I dont have a way to put http://getcredit365.com/offer/ in front of the offer URL
     
    LazyD, Nov 18, 2006 IP