Is it possible to have “open directories” (directories containing no index file) display a generic index.html/index.php/etc. by default? I’m working on a script now that will display all the contents of the local directory in a customized style and maybe offer a little extra functionality. I’m frequently adding folders to my webspace, and it would be convenient if anytime an “open directory” was encountered, it pointed to some generic index file stored elsewhere. This would eliminate the need for me to make a copy of this generic index.php every time I create a new directory.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Display Directory Contents? | 0 | 40 | August 31, 2007 | |
How to write a PHP coding to list out all files and directories as links to them? | 0 | 113 | April 8, 2011 | |
Index.html | 2 | 579 | March 10, 2017 | |
Index.php not loading automatically
|
2 | 85 | June 4, 2008 | |
How to set default home page back to index.html? | 0 | 87 | April 4, 2008 |