Allow directory browsing on one folder only
-
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 SecurityBy 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]
- The topic ‘Allow directory browsing on one folder only’ is closed to new replies.