Is there any way to set up the specified using htaacess?
I tried before, but it just broke the entire website
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.)
Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | espa˝ol | portuguŕs | catalÓ | un peu de franšais | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية
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.