mimiburned
Member
Posted 7 months ago #
Hi!
How can I place a meta robotx noindex tag on comment pages? I don't want my comment pages being indexed.
I automatically places an index tag and can't find where to disable it.
thanks in advance!
http://wordpress.org/extend/plugins/gregs-high-performance-seo/
Links within comments are automatically set to 'noindex' if I remember correctly.
mimiburned
Member
Posted 7 months ago #
That's not what a meant, didn't say anything about links within comments. I'm talking about comments pages, ie. comment-page-2, comment-page-3, and so on.
They are part of the single post page, so you can't noindex them without applying it to all single posts.
mimiburned
Member
Posted 7 months ago #
Those are sub-pages, and the Ultimate SEO plugin was able to set a noindex tag in them. But I don't want to stop using Greg's plugin.
I'm not sure if you are understanding what I need.
GregMulhauser
Member
Posted 7 months ago #
Hi mimiburned,
GHPSEO doesn't support adding noindex to comment pages (good idea, though -- will mark it down for possible inclusion in future release). However, for search engines that understand wildcards, such as Google, it's easy enough via robots.txt:
Disallow: /*/comment-page
That says to the bot: disregard anything that includes 'comment-page' within it, provided there's at least one directory above it.
All the best,
Greg