perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Johnstone" <>
Subject [mp1] redirect in ErrorDocument
Date Fri, 17 Mar 2006 16:41:54 GMT

In an Apache::Registry  ErrorDocument (e.g. ErrorDocument 404 / )

This doesn't work:

  $r->header_out('Location', $newurl);
  return OK;

Apache returns an error saying that my 404 handler returned a 302 error. 
Does the same if I use err_header_out

Yet enabling "PerlSendHeader On" and doing:

  print "Location: $newurl\n\n";

works fine.

I'd prefer to get the first way working - any ideas?


View raw message