in reply to perl filter for redirection

The documentation shows using PerlOutputFilterHandler with Location and Files tags, not Directory. I suggest you try one of those.

Replies are listed 'Best First'.
Re^2: perl filter for redirection
by mrc (Sexton) on Mar 24, 2010 at 17:57 UTC
    PerlOutputFilterHandler working with <directory> as well. Tested with similar filter.
    I have no idea why this won't work
    $r->headers_out->set(Location => $location);
    Headers are not set
      Problem seems related to
      Apache2::Const::REDIRECT
      If I replace it to
      Apache2::Const::OK
      I can set "Location", but redirection won't really work because response is 200 not 302. The same problem with
      Apache2::Const::HTTP_TEMPORARY_REDIRECT
      Nothing working except Apache2::Const::OK :(
      Any input will be greatly appreciated.