Disable directory listing

I want to disable directory listing.

I do this in my .htaccess:

Options -Indexes

But it doesn’t do anything. It is just same as before. I can list in directory.

My web: codevio.epizy.com

Your htaccess file is called htaccess, and not .htaccess. Please rename that file and add a dot in the beginning of it before it can be executed by Apache.


Thanks! But it is not correct. I named it by mistake only htaccess and not .htaccess. When I rename it, it works

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.