I would like to allow folder /news/ and disallow all the sub folders under /news/ e.g. /news/abc/, /news/123/. How can I do that please?
I think Disallow: /news/ will block everything in it, including /news/ itself.
Will Disallow: /news/*/ do the job, since there is no easy way to test it, I want to make sure.
User-agent: *Allow: /$Disallow: /And tested it via the google search console but https://www.mywebsite.com/index.php was blocked. Does this need to be different at root level?
– rbassett Jul 12 '21 at 15:12User-agent: *Disallow: /*/– rbassett Jul 12 '21 at 15:27Disallow: /*(because the final slash comes after the wildcard anyway, which covers the slash). – Henry Visotski Jul 13 '21 at 16:45