On Sun, Mar 13, 2011 at 13:15, Eric Covener <cove...@gmail.com> wrote: > r->main doesn't change on an internal redirect AFAICT.
You're right. And there is ap_internal_fast_redirect() that works different still. The only thing I can think of that should work for all three is to follow r->main until it's NULL, then follow r->prev until you're at the root request.