This problem was discussed here: http://drupal.org/node/48405
The problem is that when adding a comment is on a seperate page as a node, the node is submitted to the search engines twice (node/*, comment/reply/*).
I personally think that all comment pages should have a rel="nofollow" on them (replies to nodes/replies to comments).
Example:
<a href="/comment/reply/45" rel="nofollow">add comment</a>
Another fix mentioned in the previous post is to add the following to robots.txt:
user-agent: *
Disallow: /comment/
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 48539.patch | 816 bytes | dopry |
| #1 | comment_25.patch | 802 bytes | bradlis7 |
Comments
Comment #1
bradlis7 commentedHere's a patch I came up with. See what you think.
Comment #2
bradlis7 commentedComment #3
bradlis7 commentedAn alternative would be to have a default robots.txt, and disallow all path to comments.
Comment #4
Zen commentedComment #5
dopry commentedThis is an old issue. Here is a current patch. committable or won't fix?
Comment #6
RobRoy commentedI think this might be better suited in the default robots.txt, no?
Comment #7
catchcomment/reply now excluded in D6 robots.txt
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
JeremyL commentedIs it possible to add the nofollow with a an overide in the template.php file? The robots.txt solution does not stop the leakage / dilution of pagerank from the page. The ideal solution is both the robots.txt and the nofollow.
Comment #10
brianV commentedIt's possible - just override the appropriate theme functions.
This could be done in core, though. That would be a novice task - add a default 'rel="nofollow"' attribute to all 'add comment' and similar links.
Comment #11
alexanderpas commentedrel="nofollow"is not a viable solution, as it still doesn't prevent the search engine to index that page, it just tells the search engine it can't take this road, and will still happilly index the page if coming from another (possibly external) page.7.x-dev already has
/comment/reply/in robots.txt, marhing this as duplicate of #180379: Fix path matching in robots.txt