[ad_1]
Hi All,
Slightly unusual request here. I need to unhide our WP-contents folders in order to run a script which picks up on those files.
I’ve seen countless tutorials on how to close them off but I’m not sure how I’d open them back up again, is it a case of simply deleting the below from the .htaccess file?
<Directory /your/website/directory>Options -Indexes</Directory>
thanks for your help
[ad_2]
I strongly suggest you to consider another way to do that, for security reasons.
For learning purposes, I suggest to read this thread on allowing browsing on specific folders:
>https://stackoverflow.com/questions/21504189/disable-directory-listings-in-all-but-one-folder-using-htaccess
I agree that it’s dangerous to do so.
Did you consider to store the data that has to be downloaded later, in the uploads (media) folder that is available by default for direct access?