In Apache, is it possible to have a dynamic/regex DirectoryIndex Directive?
Normal DirectoryIndex would do:
server/DIRECTORY1 --> server/DIRECTORY1/index.html
server/DIR1/DIR2 --> server/DIR1/DIR2/index.html
...
etc
But how would I accomplish:
server/DIRECTORY1 --> server/DIRECTORY1/DIRECTORY1.html
server/DIR1/DIR2 --> server/DIR1/DIR2/DIR2.html
...
etc
I want this because I have many index files open in my editor, and it's hard to tell the tabs apart because they're all named index.
- I'd prefer something that'll work site-wide in
httpd.conf
- I want to keep the with/without trailing-slash detection that
mod_dir
has. - My attempts using
mod_rewrite
tend to mess up the URI variables at the end :(