Hi,

Since Drupal 7 comments have their titles linked and pointing to a separate page at:

example.com/comment/43
example.com/comment/44
example.com/comment/45

and so on.

This is leaving my site completely destroyed SEO-wise because each and every comment gives me exactly the same copy of the node page being commented.

For example the following links:

example.com/comment/43
example.com/comment/44
example.com/comment/45

Display exactly the same content (!) if they are on the same node, giving me tons of tons of duplicate content and Google eventually penalized me badly for this.

For now I just disabled comments and deleted them completely, because it doesn't look like a proper way of displaying content to me and I'm getting penalized over and over again because of this comment implementation.

I tried

Disallow: /comment/

in robots.txt but Google seems to ignore that rule and comments are still being indexed giving me huge duplicate content issues.

Is there any workaround for this? Is there any way I could disable displaying comments as separate pages and display them beneath the node content without any links in their titles?

Comments

Anonymous’s picture

I don't see any configuration item that will help. As I see it you have a couple of possible options.

1) Find a module that does a 301 redirect to the node page (maybe Global Redirect will do it).
2) Create a module that uses a link alter hook and 301 redirect to the node page.
3) Maybe views module can help?

pixelsweatshop’s picture

Take a look at http://knooq.com/blog/drupal-comments-robotstxt

Essentially it says to use the following:

# Paths (clean URLs)
Disallow: /comment/
Disallow: /comment*/
Disallow: /comment/reply/
Disallow: /comment/reply*/
Disallow: /comment_notify/
Disallow: /comment_notify*/
...
# Paths (no clean URLs)
Disallow: /?q=comment/
Disallow: /?q=comment*/
Disallow: /?q=comment/reply/
Disallow: /?q=comment/reply*/
Disallow: /?q=comment_notify/
Disallow: /?q=comment_notify*/

Version: 7.16 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.