In some cases, it is necessary to display a list of files in a directory (directory listing) if there is no file in the directory that is shown by default. To do this, you need to add the following line to .htaccess:

Options +Indexes

The .htaccess file must be created in the exact directory in which you plan to allow listing. This directive will also apply to all subdirectories (this is achieved by enabling the AllowOverride All directive in the virtual host settings by default).

By default, the Options -Indexes directive is enabled, and if there is no index page, you will receive a 403 HTTP error.

Je li Vam ovaj odgovor pomogao? 37 Korisnici koji smatraju članak korisnim (90 Glasovi)