Allow directory browsing on one folder only

[ad_1]

Really Simple SSl creates an .htaccess file in /wp-content/uploads/ with the following content:
#Begin Really Simple Security
<Files *.php>
Require all denied
</Files>
#End Really Simple Security

By design, this disables directory browsing in the entire /wp-content/uploads/ subtree.
But I want to enable directory browsing in a subfolder /wp-content/uploads/shared.

For the moment, I have deleted this .htaccess file and recreated a new one with only root permissions (so it doesn’t get overwritten) with this line: Options +Indexes

This works as far as I can tell but it also enables directory browsing in other folders in /wp-content/uploads/

Is there a better way of achieving this? Thanks!

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer