httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject pr38642: mod_rewrite and PATH_INFO per-directory
Date Fri, 14 Nov 2008 22:40:03 GMT

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

View raw message