5 Nov 2006 08:28
Re: 301 redirect returning 302 instead
<ianevans <at> digitalhit.com>
2006-11-05 07:28:54 GMT
2006-11-05 07:28:54 GMT
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
RSS Feed