Forum Moderators: phranque

Message Too Old, No Replies

DirectoryIndex and wildcards

different index in each directory

         

sigmahawk

3:45 am on Apr 11, 2009 (gmt 0)

10+ Year Member



So I have a situation where I have a large number of subdirectories, and each has a slightly different index page. Right now I'm looking at putting a .htaccess file in each one with DirectoryIndex set to that directory's specific index, but what I'd like to do is have it pick the first file matching my pattern be the index.

Is this possible, something like: DirectoryIndex (.*)01.html

g1smd

6:02 pm on Apr 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You have to list all the possible exact names in the directive.

It will match the first one found on the list that exists.