Hello there, We have just upgraded to :
Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27 configured
Running perl 5.6.1.
I am getting 302 error message on my redirects. This comes as a complete surprise since the same piece of code works just fine on:
Apache/1.3.14 Ben-SSL/1.42 (Unix) PHP/4.0.3pl1 mod_perl/1.24_01 configured
Here is my code:
$r->headers_in->unset("Content-length"); $r->header_out(Location => "$uri"); $r->status(REDIRECT); $r->send_http_header; return REDIRECT;
I am not sure where to begin debugging. I first wanted to check w/ you guys to see if there are any quick fixes.
I appreciate any feed back.
This is probably because Apache has changed the way it handles return codes. I believe you should return OK as in this example:
http://perl.apache.org/docs/1.0/guide/snippets.html#mod_rewrite_in_Perl
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com