Directory-browsing on my wordpress site is enabled- Disabling with htaccess not working

This topic has 4 replies, 3 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler

  • Avatar: webpat
    webpat
    Participant
    May 13, 2023 at 09:29

    I am trying to disable-directory-browsing on my wordpress site ghadial,in by adding “Options -Indexes” in the htaccess file but still its not working.

    Can you please look and help…is its some setting in theme which overrides…. the changes in htaccess

    3 Answers
    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

    Avatar: webpat
    webpat
    Participant
    May 15, 2023 at 15:46

    Thanks….I contacted server guys and they fixed the problem

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 15, 2023 at 16:04

    Hello, @webpat,

    Thank you for letting us know.
    Have a nice day!

    Best Regards,
    8Theme’s Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.