# Default Index

**URL:** <https://forum.kirupa.com/t/default-index/248199>\
**Category:** programming\
**Created:** [January 4, 2008, 9:44pm UTC](https://forum.kirupa.com/t/default-index/248199 "2008-01-04T21:44:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickcherryjiggz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nickcherryjiggz/32/2107_2.png) [@nickcherryjiggz](https://forum.kirupa.com/u/nickcherryjiggz)\
**Post date:** [January 4, 2008, 9:44pm UTC](https://forum.kirupa.com/t/default-index/248199/1 "2008-01-04T21:44:43Z")

</div>

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.
