Is there any way to set up the specified using htaacess?
I tried before, but it just broke the entire website :p
Is there any way to set up the specified using htaacess?
I tried before, but it just broke the entire website :p
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.)
Disable the directory listing, or just show a blank page; either is fine.
The line above in your .htaccess file (on a UNIX server) should disable file listing in that folder and all sub-folders.Code:IndexIgnore *
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.