External website redirect URLs

Discussion in 'PHP' started by Omzy, Apr 16, 2009.

  1. #1
    A lot of websites do this for external links:

    /redirect.php?site_id=00021

    What is the benefit of doing it this way, rather than just putting a direct link to the URL?
     
    Omzy, Apr 16, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    well, it's for counting the hits delivered and it will not transfer pr, and more
     
    crivion, Apr 16, 2009 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    You can track clicks through your application. You can also block search engines from following those links. I think these are the 2 most common reasons for linking like this.
     
    jestep, Apr 16, 2009 IP
  4. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I see. So I suppose really the most useful function would be to count the hits, as you can always do a "rel=nofollow" on the link to prevent search engines following the link...
     
    Omzy, Apr 16, 2009 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    Another use is to obfuscate the target of the link - the user will see the "redirect.php" in the link when hovering (in the status bar of the browser) and will have no way of knowing where the link will take him if clicked. Personally I find this type of linking annoying, and there are other ways of counting clicks.
     
    PoPSiCLe, Apr 17, 2009 IP
  6. jorgy

    jorgy Peon

    Messages:
    611
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Right... it's the same principle as using tinyurl, or a similar service. And also like the other people mentioned, it can be useful for keeping track of traffic. This is useful for affiliate programs where you want to make sure you are getting credit for all the traffic you send.
     
    jorgy, Apr 18, 2009 IP
  7. angielski

    angielski Peon

    Messages:
    57
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The solution for keeping counting clicks and make users aware of where link goes to is to use format like:
    redirect.php?link=http://domain.com/page.html
     
    angielski, Apr 18, 2009 IP
  8. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    How exactly does this method prevent PR being passed on the link?
     
    Omzy, Apr 20, 2009 IP
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    There are no direct link for the google bots to parse while crawling - the link is only "triggered" when clicked, in the PHP-rewrite function - therefore, there is nothing else than the "/redirect.php?site_ID=000021" for the bots - they won't pick up on that link, and even if they do follow it, it won't build to the pagerank of the receiving site, since there is no direct link to the site from the original site.

    At least that's how I understand it.
     
    PoPSiCLe, Apr 20, 2009 IP