What
does the [P] flag in mod_rewrite use to proxy requests? For example, the only
way to rewrite a request and proxy it is with the [P] flag after the rewrite. I
haven’t been able to find a way to proxy requests after a rewrite with
mod_rewrite without using the [P] flag. Apache seems to apply rules from
mod_proxy before rules from mod_rewrite and, if a mod_proxy rule applies, the
mod_rewrite rules are skipped. Why is this the case and is there a way around
this? |