httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Sending directory trees to a single file
Date Wed, 23 Jul 2003 00:19:17 GMT

On Tue, 22 Jul 2003, Michael Johnson wrote:
> I have a single script (in PHP, incidentally) that I want to have process
> all the files in a designated directory tree. For example, I want
> to be handled by
>  /docroot/path/script.php
> I have a script2 in the same directory as script that I want to be handled
> similarly.
> I have been using mod_rewrite to do similar things so I took that approach
> with this. But when I decided to move the .htaccess file implementing the
> rewrite I took it temporarily out of service. And the links still worked as
> I wanted!
> I can't find anything that does this besides mod_rewrite. I searched the
> documentation and online via Google. And since I pulled the .htaccess files
> out (rm'd them!) I don't know why this is working. I do have the MultiViews
> option turned on. Does that maybe have something to do with it?

This is a combination of "Options Multiviews" (which eliminates the need
for the extension) and standard handling of PATH_INFO (the stuff after the
real name of the script gets put in that env variable).  In 2.0, see the
directives Options, AllowPathInfo, and MultiViewsMatch.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message