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

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=)  :
learn-greek-online.com/ask-greek/register?to=713%2Fi-douleia-einai-mia-xara
learn-greek-online.com/ask-greek/register?to=162%2Fusing-a-double-g-in-greek

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
by

I took this plugin and customized it:

https://qcybb.com/question2answer-seo-meta-tags/

Now all the register and user pages have :

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