• Resolved Jmarc

    (@jmarcsyd)


    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]

Viewing 1 replies (of 1 total)
  • Thread Starter Jmarc

    (@jmarcsyd)

    Never mind. I’ve solved it. Leave the /wp-content/uploads/.htaccess untouched but create a second one /wp-content/uploads/shared/.htaccess with the following content:

    Options +Indexes
    #Begin Really Simple Security
    <Files *.php>
    Require all granted
    </Files>
    #End Really Simple Security

    Sorted.

Viewing 1 replies (of 1 total)
  • The topic ‘Allow directory browsing on one folder only’ is closed to new replies.