How to prevent indexing pages with GET parameters?

0 like 0 dislike
5 views
There is a link like: sitename.com/info?id=1

How to disable the entire folder /info regardless of the values of get-parameters?

Thanks in advance.
by | 5 views

2 Answers

0 like 0 dislike
by
0 like 0 dislike
robots.txt:
User-agent: * Disallow: /info* Host: https://sitename.com/ Sitemap: https://sitename.com/sitemap.xml
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,907 users