in reply to modperl2 redirect

Amazing how right after you spend days trying to figure something out, you ask for help and then figure it out on your own within 5 minutes of asking for that help hehe.

The solution was to just have:
print "\n";
after
$r->headers_out->add('Location' => $redirect);

Everything works now....

Replies are listed 'Best First'.
Re^2: modperl2 redirect
by Your Mother (Archbishop) on Jul 29, 2008 at 00:25 UTC

    While that might work, I don't think it's "right." See the recipes in here: mod_perl: Cooking Recipes. This might be right, untested.

    $r->headers_out->set(Location => $location); $r->status(Apache2::Const::REDIRECT); return Apache2::Const::REDIRECT;