You can just put a blank file named index.html in that directory.

A “more correct” way is to put a file named .htaccess in that directory consisting of only this line. Options -indexes What is especially nice about doing it this way all subdirectories of that directory also get their directory listings turned off.

You could then turn on indexes for one of those sub-directories. Just by making a .htaccess file in that directory with: Options +indexes

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Use the Telnet Command

How to Use the Telnet Command

This article explains how to use the Telnet command. It is a handy tool for…

Dedicated Servers : Random access memory or RAM

RAM in a dedicated web server is as important as your local machine or server.…

GLIBC GHOST – How to Deal with it?

A critical vulnerability in the glibc library has been announced by Red Hat Product Security,…