perl-modperl mailing list archives

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

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

This doesn't work:

  $r->header_out('Location', $newurl);
  $r->status(302);
  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?

Carl


Mime
View raw message