I have tried writing this into my config file, to match folders only in that 'example' directory and no further sub-folders...
<DirectoryMatch "\/var\/www\/html\/example\/[^/]+\/">
IndexIgnore ..
</DirectoryMatch>
Other regex I have tried...
/var/www/html/example/[^/]+/
/var/www/html/example/(.+/){1}
If I explicitly write the path to the folder, it works. Where am I going wrong?
I see Apache uses Perl Compatible Regular Expressions provided by the PCRE library.
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2016-07-14T12:32:26