Justin Wyllie wrote:
I am trying to use:

$headers = $r->headers_out;
$r->no_cache(1);
$headers->set( Location => url  );
return REDIRECT.

You didn't specify your Apache/mod_perl version. For 2.x this is what I have and it works fine:

 $r->no_cache(1);
 $r->status(Apache2::Const::HTTP_MOVED_TEMPORARILY);
 $r->headers_out->add(Location => url);
return Apache2::Const::OK;

Reply via email to