Is there a straightforward strategy to force Apache to map all URLs
that end in a slash to .../index.html instead of treating them as
directory requests? I have read a variety of discussion on this but
think that having Mason handle directory requests is unnecessarily
complicated for my needs.
Essentially I have the following component file structure:
/foo/dhandler
/foo/index.html
/foo/branch-index.html
/foo/leaf-file.html
The design of the URLs is intended to mimic a simple file hierarchy
by having the dhandler translate URLs of 1 or 2 levels as follows:
/foo/ => /foo/index.html
#shows a list of all branches
/foo/1234/ => /foo/branch-index.html?branch=1234
#shows a list of all leaves in branch 1234
/foo/1234/5678/file.html => /foo/leaf-file.html?leaf=5678
#shows detailed "contents" of leaf 5678
Apache does correctly resolve "/foo/" to "/foo/index.html", so I
assumed that "/foo/1234/" would be treated similarly, i.e. resolve to
"/foo/1234/index.html", and since that doesn't resolve to an actual
file the dhandler would come into play. Unfortunately the second
level URLs ending in a slash do not work (presumably Mason declines
the request and the dhandler never gets invoked). The dhandler *is*
invoked and acts properly if index.html (or anything else) is
appended to the URL (e.g. /foo/1234/index.html, or /foo/1234/bar.html).
Thanks in advance for any help,
--Ken
[EMAIL PROTECTED]
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users