View Full Version : Error on navigating to directory with no index file (htaaccess)

03-11-2013, 09:04 AM
Is there any way to set up the specified using htaacess?
I tried before, but it just broke the entire website :p

03-11-2013, 09:08 AM
Do you want to display a directory listing? Or do you want to disable the directory listing? Or do you want a redirect? Or do you want to set some other file than index.htm (etc) as the default page?*

(*Note: there's usually a hierarchy, something like index.php, index.htm, index.html, default.php, default.htm/l, etc.; so you don't need to set that for any of those default names, unless you'd want to switch the order, but you could set it for some other file like name.htm to act as index.htm.)

03-11-2013, 09:39 AM
Disable the directory listing, or just show a blank page; either is fine.

03-11-2013, 10:54 AM
IndexIgnore *The line above in your .htaccess file (on a UNIX server) should disable file listing in that folder and all sub-folders.

If .htaccess is causing trouble, you could also create an empty "index.htm" or "index.php" file in the folders you dont want listing. Of course it wouldn't filter down to sub-folders, so you'd need to do it in all folder where you need to disable the directory listing.