Re: Problems with 301 redirects

From: Date: Sun, 05 Nov 2006 07:21:50 +0000
Subject: Re: Problems with 301 redirects
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26336@lists.php.net to get a copy of this message
> Never ever use a Status header. As I mentioned in my email, I have used the HTTP string: 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.

« previous php.internals (#26336) next »