HTML code for non direct links

Discussion in 'HTML & Website Design' started by girl, Aug 4, 2005.

  1. #1
    I need the html code for linking to someone without passing on PR....i guess its called a redirected link.

    eg: i want to link to www.url.com
    i normally use <a href="http://www.url.com">URL<a>

    this passes on pr and is a direct link....

    whats the html code for a non direct link

    thanks
     
    girl, Aug 4, 2005 IP
  2. Perrow

    Perrow Well-Known Member

    Messages:
    1,306
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    140
    #2
    You can use

    <a href="http://www.url.com" rel="nofollow">
    Code (markup):
    But using java script would also work. I think Google is the only one using the nofollow but noone of the se's take java links into consideration.
     
    Perrow, Aug 4, 2005 IP
    girl likes this.
  3. Neoto

    Neoto Active Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    Actually Yahoo and MSN support the nofollow attribute.
     
    Neoto, Aug 4, 2005 IP
  4. girl

    girl Active Member

    Messages:
    1,059
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    90
    #4
    it doesnt affect ref links does it?
     
    girl, Aug 4, 2005 IP
  5. CompressedAir

    CompressedAir Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The easiest way would be to write a script in PHP, ASP, or your language of choice to redirect a link request to a given URL.
    Thus, a link like
    <a href="http://www.your-site.com?redir=sitecom">Site.com</a>
    Code (markup):
    will redirect the user to site.com via a 301 redirect (permanent redirect). If you are using PHP, you can do something like:
    
    <?php
    header("HTTP/1.0 301 Moved Permanently");
    header("Location: http://www.site.com");
    ?>
    
    Code (markup):
    This way, all links are actually pointed to your site and won't pass PR to that site. After the user click the link, they are sent to the desired site.
     
    CompressedAir, Aug 5, 2005 IP
  6. ukmp3

    ukmp3 Peon

    Messages:
    133
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I was looking for something similar :

    I want all the links that go out of our site to have rel="nofollow", but keep the normal links on the internal links.

    I am far too lazy to do this one link at a time.

    So… is there way of making a php script that says if the link is internal http://www.xxxxx.com then leave it alone if its http://www.another site.com then add rel="nofollow"
     
    ukmp3, Aug 7, 2005 IP