Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Listing the contents of a directory that has no index
If you put the files in a directory on the server and type the URL for this directory into your browser, you will get an error message: the files will not be listed automatically. You will get an error:
Access denied!
Either there is no index document or the directory is protected.
If you think there is a server error, please contact the site administrator.
Error 403
It is possible to change this so that the browser lists the files present.
Actions to be carried out
Create an .htaccess file in the folder in question
Insert the following command:
Options +Indexes
Illustrated steps
Setting up the .htaccess file to enable directory listings
More information/References
Please note that this solution will only work if you if you do not have any index in the directory concerned: you must remove any index.php, index.html, index.htm files etc, along with the welcome.php file if present, as this is also an index just like index.html/php etc.
http://www.tuteurs.ens.fr/internet/web/htaccess.html#s4
http://httpd.apache.org/docs/1.3/mod/mod_autoindex.html
http://httpd.apache.org/docs/1.3/mod/core.html#options
Link to this FAQ: