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.

What Is ECC Memory and Why It Matters for Server

What Is ECC Memory and Why It Matters for Servers

ECC memory for servers is a type of RAM that detects and corrects data errors automatically…

How to Use WHM to Download a Domain’s Raw Apache Logs

This post will show you how you can download the Raw Apache logs from WHM…

How to Fix Node.js ‘Cannot GET URL’ Error Quickly

This guide will illustrate how to resolve the Node.js error: “Cannot GET” URL. First, let’s…