[thelist] [php] Redirect causing error 500
Eduardo Dominguez
lalo at teligens.com
Wed Feb 18 14:05:42 CST 2004
Joshua Olson wrote:
> Hi Gang,
>
> I'm trying to set up a simple 301 redirect using PHP and it's causing a 500
> error:
>
> <?
> header("HTTP/1.1 301 Moved Permanently");
> header("Location: http://www.domain.com/");
> exit();
> ?>
>
Sometimes hosts have error_reporting disabled. Enable error reporting
(set it to E_ALL) on that particular script and give it another try.
More information about the thelist
mailing list