Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

2 Answers

0 votes
by
Hi zeeshan,

Same thing happened to my website.
by
any solution?
0 votes
by
edited by
I had the same problem.  A very simple solution is to add these in the robots.txt:

Disallow: /user*
Disallow: /register*
Disallow: /login*
Disallow: /ask*
Disallow: /forgot*
Disallow: /chat*
Disallow: /admin*
Disallow: /activity*
Disallow: /questions*

EDIT:  I just changed the above rules to make it more efficient.
by
I already have something  like this

User-agent: *
Disallow: /login
Disallow: /index.php?qa-rewrite=
Disallow: /ask
Disallow: /forgot
Disallow: /register
Disallow: /questions?sort
Disallow: /chat
Disallow: /admin
Disallow: /activity/*
Disallow: /search?q=
Disallow: /cdn-cgi/
# allow google image bot to search all images
User-agent: Googlebot-Image

Allow: /*

Sitemap: https://electronics2electrical.com/sitemap.xml
by
If you want to block this url:
https://electronics2electrical.com/register?to=3342%2Fwhat-is-measurement-error

Then you need this rule (do NOT ommit the *):
Disallow: /register*
by
hmm ok....thanks....
by
After you fix your robots.txt, you can test if it really blocks the desired urls from WebMasterTools:
https://i.imgur.com/MVEv5eq.png

Even better, go to the new Google Search Console:
ttps://search.google.com/search-console
by
ok thanks again....
...