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.

Linux – Terminal Server Client

Through Linux Terminal Server Client, we can connect to a Windows or Linux desktop which…

How to Link MySQL Database to PHP With MySQLi and PDO

How to Link MySQL Database to PHP With MySQLi and PDO

When creating dynamic webpages, connecting a PHP application to a MySQL database is a vital…

Disk Quota Check-in ensim, fixing quotas manually for Ensim

If you are getting the following errors in your logs : Sep 5 21:51:43 srv01…