WinStart Webbhotell

0707 884838
031 3608555

Webbhotell > Support webbhotell > Blandat > htaccess allow directory listing


htaccess allow directory listing




Having a listable directories on your site sometimes is useful. However, some times it can be considered a security issue. No, matter which option you prefer you can control this behavior of your site using 1 simple line:

Options +Indexes

The above line enables Directory listing.

Options –Indexes

The above disables directory listing for your web site.

The .htaccess file gives more then simply enabling and disabling of a directory listing.
With .htaccess file you can control which files to be ignored when creating a directory list.
For example:

IndexIgnore *.gif *.zip *.txt

Will make the apache server to skip all gif, zip and txt files from the directory list.
Convenient, isn’t it.

IndexIngnore *

Will just create an empty directory list.



Hjälpte svaret dig?

Lägg till i favoriter Lägg till i favoriter    Skriv ut denna artikeln Skriv ut denna artikeln

Läs även