I want to prevent my directory from being listed

1 Answer(s)
Best answer

To prevent a directory from listing you will need to edit or add .htaccess file in that directory. Open the file with a text editor and add the following line:

 Options –Indexes

Save the file and the directory should no longer be listed.

Chris Stewart Answered on October 8, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.