httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <>
Subject Re: mod_rewrite: different behaviour on sub-requests - Why?
Date Mon, 28 Jul 2003 09:47:57 GMT

>> Can somebody enlight me what this code in mod_rewrite.c is good for?
>> static int hook_fixup(request_rec *r)
>> {
>>    [...]
>>     /* we shouldn't do anything in subrequests */
>>     if (r->main != NULL) {
>>         return DECLINED;
>>     }
>> It took me days to track down what is is not good for
>> (see bug ).
>> I suggest to disarm this section if not removing it from mod_rewrite.c...
> This was added immediately after the inclusion of mod_rewrite into
> the httpd code (some years ago). I believe, the only one who can say,
> _why_ this was added, is Ralf :). However, I'll take a look into it.
> This was probably added in order to avoid mod_rewrite-loops. Perhaps
> it isn't necessary any longer.

No, sorry, I cannot remember myself. But you can be right, it looks like
it was to prevent loops. The only other possible reason I can think of
is that it was to perhaps speed up processing. But, as I said, I no
longer can remember the real reason.

                                       Ralf S. Engelschall

View raw message