Use .htaccess to make Apache list files in a directory Print

  • 0

By default Apacke will not list files in a directory for security reasons.

If you want Apache to list the files in a directory

Create an .htaccess file in the folder permissions are 644
Add this line (Without Quotes)  "Options +Indexes"

NOTE: This will only work if there is not an auto-exectued file in the directory ie. index.php or index.html

For a more complet list of autoexecuted files see our article Default Index Priority

Was this answer helpful?

« Back