1. Home
  2. Web Content
  3. Displaying directory contents

Displaying directory contents

If you would like for the Web server to generate a listing of all contents in a given directory, then create a file named .htaccess with the following line: Options +Indexes

You will also need to remove all directory index files (e.g. index.html, index.php, index.htm, index.*) from the target directory. The directory index files will always take precedence over the Indexes directive.

Updated on July 8, 2019

Was this article helpful?

Related Articles