Reply 356555 to: Directory-browsing on my wordpress site is enabled- Disabling with htaccess not working

Avatar: Tony Rodriguez
Tony Rodriguez
Support staff
May 13, 2023 at 10:07

Hello, @webpat,

If you have added “Options -Indexes” in your .htaccess file and it’s not disabling directory browsing, there could be a few reasons why it’s not working.

Here are some troubleshooting steps you can try:

1. Check if the .htaccess file is working: Make sure that the .htaccess file is located in the root directory of your website and that it is working properly. To test if the .htaccess file is working, add some random text to it and see if it breaks your site. If it does, then the .htaccess file is working correctly.

2. Check file permissions: Make sure that the file permissions on the .htaccess file are set to 644. If the file permissions are set incorrectly, it may not be read by the server.

3. Clear cache: Clear your browser cache and refresh the page to see if the changes take effect.

4. Check for conflicting rules: If you have other rules in your .htaccess file, it’s possible that they are conflicting with the “Options -Indexes” rule. Try removing all other rules and see if the directory browsing is disabled.

5. Check server configuration: If none of the above steps work, it’s possible that the server configuration is overriding the .htaccess file. You may need to contact your hosting provider or server administrator to disable directory browsing.

I hope these steps help you to resolve the issue of disabling directory browsing on your WordPress site.

Best Regards,
8Theme’s Team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.