You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Eric Covener <co...@gmail.com> on 2008/11/14 23:40:03 UTC

pr38642: mod_rewrite and PATH_INFO per-directory

https://issues.apache.org/bugzilla/show_bug.cgi?id=38642

In per-directory context (entire issue n/a elsewhere), before each
individual rule is applied the URI being compared against is assembled
from the current filename+path_info.

When a rule matches in per-directory context, and we're changing
r->filename, is there any reason to not null out r->path_info so it
won't be appended to the re-written filename on the subsequent rule?

Conceptually it seems like if you're doing per-directory Rewrite rules
that you'd want the the PATH_INFO to not re-appear as a side effect of
evaluating an additional rule.  I'm not sure if it's lopsided enough
to change the default (and offer a flag to maintain current behavior)
vs. adding a flag to discard the PATH_INFO.


-- 
Eric Covener
covener@gmail.com