Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Q2A Core by
edited by

In Google Search Console I see many urls with the warning "Indexed, though blocked by robots.txt".  Most of them are like this (with the register?to=)  :

Ideally I would like to have the NOINDEX or at least the CANONICAL tag on those pages.  Unfortunatelly they have neither.

Is there a way to add any of these tags on those REGISTER pages?  Maybe through a plugin, or by making a change in the code?

In the robots.txt I have this rule:

Disallow: /ask-greek/register*

This prevents crawling of the pages, but cannot prevent their indexing.
Q2A version: 1.8.0

1 Answer

0 votes

I took this plugin and customized it:


Now all the register and user pages have :

<META NAME="robots" CONTENT="noindex, nofollow">