Günther Steinmetz <gs********@web.de> wrote in news:bod63q$1d6k7c$1@ID-
67469.news.uni-berlin.de:
i think it is user friendly to have a default file in each subdirectory.
However, i hate to have lots of index.html files. Instead i would like to
have a meaningful and unique file name for all my default files. Is there
any way to specify the default file name for a given subdirectory locally
(i.e. not on the server)?
Thanks for any answers.
Guenther
If you are using Apache, you can add directives to your
..htaccess file(if they are supported by your server).
The simple thing is to specify Directoryindex, and that
will apply for the current directory and all subdirectories
(unless it is overridden).
It's not clear if you want a different index file name in
each subdirectory - if so, that would take more work.
You could also do something like use a custom error handler
to solve the problem - add ErrorDocument directive(s) to
..htacess that point to a script(e.g. PHP) that serves the
required index file for the directory when index.htm, index.html,
index.php, etc. is requested.
--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website:
http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics