In robots.txt…
I want to allow the index or homepage of the directory.
/landing/
I don’t want to allow any other pages within the directory.
/landing/page
/landing/anypage
How can this be done?
In robots.txt…
I want to allow the index or homepage of the directory.
/landing/
I don’t want to allow any other pages within the directory.
/landing/page
/landing/anypage
How can this be done?
2
Answers
disallow: /landing/* should work.
According to Google Webmasters, you may only need the
Allow
directive:source: https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt?hl=en#order-of-precedence-for-group-member-records