$r->headers_out->set('Location' => $url); $r->status(REDIRECT); [download]
In reply to External and Internal Redirecting in Mod Perl 2 by Anonymous Monk