Home / Basics / Apache : Showing files in a directory

Apache : Showing files in a directory

Basics 0
Showing files in a directory
If you want to list all files in a directory that doesn’t use an index.html (or index.php) file, you can create an .htaccess file with the following contents:

Options +Indexes

This will tell apache that you want to list all files in the directory.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  •  
    Previous Post

    Securing CPanel

  •  
    Next Post

    How to forward a website to another url using PHP