Flirtilizer
Member
Posted 1 year ago #
I am using SEO Platinum. It has the ability to turn off indexing of comments. I enabled that option and it seems like I had a good reason but I can't remember what that reason is.
It would seem to me that I'm doing away with a lot of valuable content when I do that and some not so valuable too. haha
Anyone willing to share thoughts?
Yes. You may try Canonical url in html. BTW, there is a code to functions.php.
function canonical_for_comments() {
global $cpage, $post;
if ( $cpage > 1 ) :
echo "\n";
echo "<link rel='canonical' href='";
echo get_permalink( $post->ID );
echo "' />\n";
endif;
}
add_action( 'wp_head', 'canonical_for_comments' );
This add link to article "index" page yoursite.com/your-article/, than Googlebot etc. follow it. Sorry my poor English. :)
Flirtilizer
Member
Posted 1 year ago #
Thanks for the try HPguru, I'm going to turn indexing of comments back on. Ii wonder though, will I dilute my content? Anyone?
This code directs the bot to the article "Home" and other comment pages should not then be indexed.
Flirtilizer
Member
Posted 1 year ago #
Thanks again HP, nice to have someone trying so hard to offer help!!!!
One more tweak for functions.php
function seo_for_comments() {
global $cpage, $post;
if ( $cpage > 1 ) :
echo "\n";
echo "<meta name='robots' content='noindex,follow' />";
echo "\n";
endif;
}
add_action( 'wp_head', 'seo_for_comments' );
It add noindex to other comments pages.
im using plugins SEO Super Comment but i got error in my google webmaster, as a sample http://www.news-gossip.com/archives-667-10-stunning-kate-middleton-style.html
and the comment template like this http://www.news-gossip.com/archives-667-10-stunning-kate-middleton-style.html?cid=2234
please help me, may something error in my theme
thanks before