Why?
I’ve been totally swayed by an
article by Phil
Ringnalda. My weblog is spam-free. If people want to
contribute comments and links then I am happy to pass on
some of my page rank. Likewise, if bloggers link to me, I’d
like to get some of their reflected glory. Because my site
is pretty well moderated, I don’t have to assume that
comments are spam. Trackbacks are another matter of course
. I now
moderate all trackbacks/pingbacks to avoid this form of
spam.
How?
Put the following code in the WordPress file my-hacks.php.
It will remove the nofollow directive for both
links in comments and to the author’s home page.
<?php
// -------------------------------------------------------------------------
// REMOVE "NOFOLLOW"
// -------------------------------------------------------------------------
function comment_author_remove_nofollow($text) {
return preg_replace("/(<a href='[^']*') rel='external nofollow'/", "$1 rel='external'", $text);
}
function comment_remove_nofollow($text) {
return preg_replace("/(<a href='[^']*') rel='nofollow'/", "$1", $text);
}
// remove/replace filters
remove_filter('pre_comment_content', 'wp_rel_nofollow', 15);
add_filter('comment_text', 'comment_remove_nofollow');
add_filter('get_comment_author_link', 'comment_author_remove_nofollow');
?>







Thanks for the great blog. Good info provided.
One thing, many many SEO's seem to think that linking out can lower your page rank. It seems to me that Matt Cutts (Google) has even indicated that google does not see it that way. Linking out is not bad for you. On the other hand if there is 1 link out, it is a much more powerful link than if there are 100 links out.
I hate blogs with nofollows on them, then they ask for your website address, It just feels like a big lie, becouse the vast majority of the people have no idea that there is a nofollow on it. and if you ask the blog owner about it, he/she usually acts offended that you asked, as if it a requirement for me to spend my valuable time thinking up a well thought out responce to their blog and get no credit for it.
I look at blogs in Firefox with the nofollow extension in it. Is shows all no follows, and if i end up on a blog that is full of no follows, it better be much much better than anything else I have read or they don't get my post to it. I also spread the word that so and so's blog is a waist of time, mainly becouse I believe they are cheating.
Jim