I have a directory that I don't want Google to index at the top level. I currently do the following:
Disallow: /profiles/
This stops Google from indexing https://example.com/profiles/
, but it also stops it from indexing https://example.com/profiles/exampleuser
. Because new profiles are created every day, it is not feasible to simply add an allow
statement for every individual subdirectory of /profiles/
How can I disallow the profiles directory itself while also allowing any subdirectory of the profiles directory?