deny directory listing htaccess 1

deny directory listing htaccess

# Place the following in your .htaccess at doc root
Options -Indexes

Here is what the above code is Doing:
1. It’s checking to see if the request is for a file that exists.
2. If it is, it’s serving that file.
3. If it isn’t, it’s serving the index.html file.

Similar Posts