July 25th, 2008 by Rizwan Ashraf   Comments ( 15 )

backlinks.gif

Link buying and exchanging is a good idea but may be not for the search engines. Got it? well lets take a simple example of blogroll in WordPress. Blogroll is a list of links that may be links of other bloggers, favorite website, link buying or exchanging. Be careful if your website caught by the search engine algorithm as illegal link exchanging scheme (although you may not doing this). So this may cause of dropping your own website page rank (PR). To save you page rank (PR) use “nofollow” to all external website links, here is an example how to use “nofollow”

Link with nofollow attribute: <a href=”#” rel=”nofollow”></a>

How we can add “nofollow” automatically to the Blogroll list of links, we need to modify some code manually in the WordPress source code file. Go to the wp-includes directory of your worpress find the file with the name bookmark-template.php and open it in your favorite editor.

Worpress 2.3.1 Go to the line no. 48
Wordpress 2.6 Goto the line no. 93
Wordpress 2.7.1 Goto the line no. 99

and find some code like this

$output .= ‘<a href=”‘ . $the_link . ‘”‘ . $rel . $title . $target. ‘>’;

and change it to

$output .= ‘<a href=”‘ . $the_link . ‘”‘ . $rel . $title . $target. ‘ rel=”nofollow”>’;

save the file and you are done, from now on all your Blogroll links will have rel=”nofollow” attribute and this will reduce the risks of dropping page rank penalized by search engines.

  • Facebook
  • StumbleUpon
  • Reddit
  • MySpace
  • Technorati
  • del.icio.us
  • LinkedIn
  • Google Bookmarks
  • Print
  • email
Advertisement

15 Responses to “Save Your Page Rank, Add Nofollow (SEO)”

  1. 1
    Kukku Says:

    Nice tip Rizzy Bravo.
    thanks for sharing

  2. 2
    grafixspook Says:

    wow, useful info
    although i haven’t experienced the code to my blog, but i will, for sure.

    thnx 4 sharing

  3. 3
    aini Says:

    thnx and grt info

  4. 4
    Ali Says:

    plz rizwan bhai tell me how can i change this on 2.7.1 wordpress while using seo excutive template thx !

  5. 5
    Rizwan Ashraf Says:

    Ali,

    It doesn’t matter what WordPress template you are using b/c its not template modification.
    In wp-includes folder of WordPress 2.7.1 open bookmark-template.php and Goto the line no. 99 and replace code as mentioned above in the post, Thanks.

  6. 6
    zain Says:

    It is great post. I requested the Author to share more and more tips on WordPress (theming,templating,exploring wp sections and other wordpress related posts). I am sure all the subscribers will wait for such posts as well.

  7. 7
    ALi Says:

    thx rizi bhai but there is no bookmark-template.php
    in my theme files
    i have main index template
    and page template and there r nor codes smiller to th one u talking abu so confuse?

  8. 8
    Rizwan Ashraf Says:

    Dear Ali,

    This file in not a theme file its WordPress source file in www/wp-includes/bookmark-template.php. where www is your website root folder.

  9. 9
    Sohaib Hassan Says:

    I want to know that whats the plugin name you are using on your website to share a topic on facebook etc, to print, email etc. etc. ???

  10. 10
    Rizwan Ashraf Says:

    Sohaib,

    Sociable is the name of the plugin that i am using for Bookmark/share purpose.

  11. 11
    Zain Says:

    Now this post is becoming more and more helpful (for me at least :D )

  12. 12
    Search Engine Optimization Subway – Complete Free SEO Library » Blog Archive » Save Your Page Rank, Add Nofollow Says:

    [...] Author : Rizwan Ashraf Tags: Attribute, Blogroll, Directory, Illegal Link, Link Exchange, Link Rel, Lt, Page Rank, Rel [...]

  13. 13
    Dave Says:

    Hey, would you like to submit comments and backlinks to millions of blogs automatically? Blog Comment Poster will do it for you. Blog Comment Poster will increase your traffic, backlinks and earnings dramatically! Sounds cool? Yes, it is cool! It’s the best automated comments posting tool on the Internet with many advanced features. Check it out!

  14. 14
    Sabir malik Says:

    will any one guide me about SEO

  15. 15
    SinoPak Says:

    sadky jao tery

Leave a Reply

Follow Me on Twitter
Share