Re: 301 redirect returning 302 instead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris,

I just posted this to php-internals in response to someone else, but this
tale of woe shows the problem:

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://...";);
exit();

produces a 302.

header("Location: http://...";);
header("HTTP/1.1 301 Moved Permanently");
exit();

produces a 302.

header("Location: http://...",false,301);

produces a 302 and, for good luck,

header("Location: http://...",true,301);

produces a 302.

Everything's producing a 302. So you can see the dilemma.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux