httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: [PATCH 2.0] mention slight regression with mod_dir+mod_rewrite in 2.0 vs. 1.3
Date Wed, 25 May 2005 23:06:26 GMT
On 5/25/05, William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
> At 02:22 PM 5/25/2005, André Malo wrote:
> >* William A. Rowe, Jr. wrote:
> >
> >> At 09:15 AM 5/25/2005, Jeff Trawick wrote:
> >> >Does anyone ahve a better/stronger/faster way to say this?
> >>
> >>> What I'm wondering is; mod_dir still does not translate the page
> >> until after the translate_name hook.  Which specific case are
> >> you thinking of?  I'll try to come up with something clear.
> >
> >It does no longer issue an internal redirect, so
> >
> >RewriteRule index.html ...
> >
> >won't catch / any longer.
> 
> please don't ellipses.  I needed to know a very exact case to map
> this behavior out and figure out how mod_dir is broke, or how the
> rules now correctly map.

DirectoryIndex index.html
RewriteRule .+\.html$ http:://www.example.com [L,R]

Client requests /
mod_dir gets it and uses subrequest to find that there is index.html
At that point, processing differs between 1.3 and 2.x.
Apache 1.3: mod_dir does normal internal redirect to index.html, and
mod_rewrite gets to see it again, and act on index.html
Apache 2.x: mod_dir does the fast-redirect flavor, so mod_rewrite
doesn't get to see the request again

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message