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:
Either there is no index document or the directory is protected.
If you think there is a server error, please contact the site administrator.
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:
Setting up the .htaccess file to enable directory listings
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.