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.)
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.
Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
The only limit to creativity is imagination: JemCon.org