Results 1 to 9 of 9
  1. #1
    Full Member
    Join Date
    December 12th, 2006
    Posts
    370
    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
    Location
    North Carolina
    Posts
    2,238
    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
    Location
    jacked by sylon www.sylonddos.weebly.com
    Posts
    9,618
    You can find information here: http://stevedawson.com/article0006.php

  4. #4
    Affiliate Manager EricTyler's Avatar
    Join Date
    September 11th, 2008
    Posts
    94
    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
    Location
    San Leandro, CA
    Posts
    1,049
    Quote Originally Posted by BurgerBoy
    You can find information here: http://stevedawson.com/article0006.php
    That's pretty cool...I'd been taught one php file per link: trishalyn.com/2008/06/php-affiliate-link-masking/

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

  7. #7
    Full Member
    Join Date
    December 12th, 2006
    Posts
    370
    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
    Location
    Cuautitlán, Edo. de México
    Posts
    1,725
    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
    Location
    Arlington, VA
    Posts
    229
    I use the lilURL php script - http://lilurl.sourceforge.net/.

    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, 05:59 PM
  2. Redirect Zappos Affiliate links
    By wetras in forum Commission Junction - CJ
    Replies: 3
    Last Post: October 14th, 2011, 01: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, 01:49 PM
  4. Cloaking Links or Redirect to Product Pages
    By madmatt2006 in forum Commission Junction - CJ
    Replies: 0
    Last Post: March 3rd, 2008, 05:53 PM
  5. .PHP pages versus .HTML pages?
    By sixeden in forum Search Engine Optimization
    Replies: 7
    Last Post: January 20th, 2007, 05: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
  •