How can I toggle the directory index feature for a folder of my domain?

How can I toggle the directory index feature for a folder of my domain?

If a URL which maps to a directory of your site is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then the browser will get an error.

  • If you want to show an empty page, put an empy index.html in your directory.
  • If you need to show the formatted listing of the directory you can activate the directory index option.

To add the directory index option to a directory and to all the subdirs, just put a file named .htaccess in the directory with the following line.

Options +Indexes

If a .htaccess file is already in your directory, then add the line.