Same index for all (sub-)directories?
Posted
by whatisthis
on Server Fault
See other posts from Server Fault
or by whatisthis
Published on 2010-06-07T20:46:18Z
Indexed on
2010/06/07
20:53 UTC
Read the original article
Hit count: 166
Hi. I was wondering if it was possible to write some .htaccess page that makes the server use an index.php file in a SINGLE directory as the index file for every directory/sub-directory on my server, rather than placing the exact same index.php in 200+ directories. If my description isn't clear, what I essentially mean is: /files/index.php is to be used as the index for, for example, /files/morefiles, as well as the index for all directories and sub-directories within /files/, even though those directories would not have an index file themselves. Thanks to all in advance.
© Server Fault or respective owner