[thelist] [php] Redirect causing error 500
Joshua Olson
joshua at waetech.com
Wed Feb 18 12:51:49 CST 2004
> -----Original Message-----
> From: Eduardo Dominguez
> Sent: Wednesday, February 18, 2004 3:06 PM
>
> Sometimes hosts have error_reporting disabled. Enable error reporting
> (set it to E_ALL) on that particular script and give it another try.
Eduardo,
Thank you for the advise. I've changed the code to this:
<?
error_reporting(E_ALL);
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.domain.com/");
exit();
?>
The error message did not change.
After a bit of commenting, I've isolated the problem down to one line:
header("HTTP/1.1 301 Moved Permanently");
If I comment out this line it works, but alas give a 302 redirect instead of
a 301.
Thanks again! Any other ideas?
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/GA/
706.210.0168
More information about the thelist
mailing list