I will pay 5$ via paypal if you write me the line of code that I need. My site is: http://www.linkshare.ro/something-special/ I need you to write me a line of code that will tell google not to index my paged comments. For example this page i don't want it in google. The plugin i use is called paged comments and can be found here. I've managed to stop robots from indexing the main pages of the site by using this code: <?php if ( $paged > 1 ) { echo '<meta name="robots" content="noindex,follow" /> '; }?> Code (markup): Now I just need to get rid of those comments pages. Thanks Florin
I don't think there is an easy way of doing it, but for more difficult ways... You could have login to view comments. You could have a link - click to view comments - with a nofollow in the link. You could put the comments into an iframe and stop google indexing that page. You could convert the comments into an image and set the alt text to blank. Hope thats of some help.
I believe this is what you want: http://www.google.com/support/webmasters/bin/answer.py?answer=61050 Edit comments.php and add this in the HEAD section: <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> HTML: or <META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW"> HTML: Adding one line of text will solve your problem EDIT: i just noticed you already have that code. just put that in comments.php
what about putting this in your robots.txt file? User-agent: * Disallow: /something-special/comment-page-* Code (markup):
Thanks dnahosting for your help It really works. Send my a pm with your paypal account to transfer 5$