Michael Greenish wrote: > use strict; [..]
# redirect $r->headers_out->set( Location => $redirectURL ); $r->status( REDIRECT );
> return REDIRECT;
I see a few things here that catch my eye but what stands out the most is the use of the same return code for the browser and apache. why are you using $r->status? Is it one of the reasons listed here?
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_status_