I am working on an e-commerce website (similar to e-bay) where users can buy or sell products.
The urls for buying a product are like:
example.com/browse/cars
example.com/browse/toys
etc
And the urls for selling products are like:
example.com/post-ad/cars
example.com/post-ad/toys
etc
When selling a product, user just need to fill a form and click on Save. Also user needs to be logged-in, in order to sell a product, therefore I have decided to prevent this page from being crawled and added the following to my robots.txt
Allow: /
Disallow: //post-ad
Disallow: /account/login?ReturnUrl=
Now I am getting the following warning in Google Search Console, for of of the post-ad pages:
Indexed, though blocked by robots.txt
How can I resolve this issue?
<meta name="robots" content="noindex">in the<head>section of post-ad pages. – Hooman Bahreini Jun 02 '21 at 08:45<meta name="robots" content="noindex">meta tag, did not resolve the issue, I still get the same error. – Hooman Bahreini Aug 31 '21 at 22:53