Results 1 to 9 of 9
  1. #1
    Full Member
    Join Date
    December 12th, 2006
    Using PHP pages for redirect to affiliate links?
    I seen quite a lot of affiliate websites dont put a straight affiliate link on their page they link to a php page which then redirects to the merchants site

    im gathering the php page has their affiliate link in and they do this so that google doesnt treat them as a thin affiliate site

    my question is.. what would the insides of this php page look like to create this redirect correctly, also has anyone had any issues doing it this way, i.e having it not track because its not actually clicked on its done through a redirect?

  2. #2
    Grandma broke her coccyx! Uncle Rico's Avatar
    Join Date
    May 8th, 2007
    North Carolina
    All my aff links are in a database table with a unique key. I then have a redirect script that takes that unique key, pulls the link from the table and sends the user to that link.

    www . site .com/bounce.php?k=123456 (example link)

  3. #3
    Moderator BurgerBoy's Avatar
    Join Date
    January 18th, 2005
    jacked by sylon
    You can find information here:

  4. #4
    Affiliate Manager EricTyler's Avatar
    Join Date
    September 11th, 2008
    The other nice thing about setting up a jump script like SeymourButts is talking about is you could also write in a counting feature to get an idea of how many people are clicking on your links. Yes, there are scripts out there that do this for you, of course. But who doesn't like writing their own stat engine, right?

  5. #5
    Outsourced Program Manager TrishaLyn's Avatar
    Join Date
    February 24th, 2008
    San Leandro, CA
    Quote Originally Posted by BurgerBoy
    You can find information here:
    That's pretty cool...I'd been taught one php file per link:

  6. #6
    ABW Ambassador
    Join Date
    October 22nd, 2006
    Even better will be if you keep all the links in a mysql table.

  7. #7
    Full Member
    Join Date
    December 12th, 2006
    Quote Originally Posted by sam_park
    Even better will be if you keep all the links in a mysql table.
    ah thats for smart folks like yourself sam. I wish i knew how to do that and then create a link which showed .php

    but i think i will have to use the above redirect script option

  8. #8
    Visual Artist & ABW Ambassador lostdeviant's Avatar
    Join Date
    September 7th, 2007
    Cuautitlán, Edo. de México
    it isn't difficult to set up redirects that use a mysql table. You just need to have some unique ID in your link.
    The ID is looked up in your mysql table by the redirect script to get the actual affiliate URL which you then redirect.

    pretty simple

    If you want to track your affiliate link clicks you'll have to set up redirects anyway.

    I just looked at the posted link and while I suppose using GET variables is ok for special redirects, I would NOT want to try to do that for affiliate links set up with datafeeds. It would be a big waste of time to try to set them up manually.

  9. #9
    Full Member iolaire's Avatar
    Join Date
    October 3rd, 2006
    Arlington, VA
    I use the lilURL php script -

    I have a public jump page that doesn't allow posting to - I've removed the forum and the new url creating script leaving just the redirect logic. Then I have a second copy of the script in a protected directory that I use to post the new urls's to and get the jump script url back. Obviously both point to the same database and table. This setup could be used for manual link building or for programmatic access using any simple http library that can access your protected directory.

  10. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Affiliate Links' Redirect via Plugin - Can It Cause Deindexation
    By Zoki in forum Search Engine Optimization
    Replies: 28
    Last Post: February 24th, 2013, 04:59 PM
  2. Redirect Zappos Affiliate links
    By wetras in forum Commission Junction - CJ
    Replies: 3
    Last Post: October 14th, 2011, 12:56 AM
  3. 301 redirect to shorten affiliate links?
    By GoColts in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 8
    Last Post: June 30th, 2008, 12:49 PM
  4. Cloaking Links or Redirect to Product Pages
    By madmatt2006 in forum Commission Junction - CJ
    Replies: 0
    Last Post: March 3rd, 2008, 04:53 PM
  5. .PHP pages versus .HTML pages?
    By sixeden in forum Search Engine Optimization
    Replies: 7
    Last Post: January 20th, 2007, 04:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts