I have pages that end in a search?=keyword and I want Google to prevent from crawling these pages. Example pages are below. I was wondering if I put a Disallow: /search in the robots.txt, will that work?
Example URL’s:
http://www.website.com/search?=neymar
http://www.website.com/search?=ronaldo
http://www.website.com/search?=kobe
So basically, I do not want Google to crawl all the URL’s that end in /search?=keyword. Thank you.
2
Answers
It will work.
you can simply use the "Disallow: /" tag along with the URLs. This will work