[mp1] redirect in ErrorDocument

2006-03-17 Thread Carl Johnstone
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 "Perl

Re: [mp1] redirect in ErrorDocument

2006-03-17 Thread Tom Schindl
Not sure but give err_headers_out a try? Tom Carl Johnstone wrote: > > 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

Re: [mp1] redirect in ErrorDocument

2006-03-17 Thread Perrin Harkins
On Fri, 2006-03-17 at 16:41 +, Carl Johnstone wrote: > 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 ret

Re: [mp1] redirect in ErrorDocument

2006-03-23 Thread Carl Johnstone
> > Yet enabling "PerlSendHeader On" and doing: > > > > print "Location: $newurl\n\n"; > > > > works fine. > > What are the complete headers that sends? I'm guessing it sends a 200 > status and it only works because your browser is broken and follows the > redirect anyway. No, it does convert t