Re: Problems with 301 redirects

From: Date: Sat, 04 Nov 2006 09:49:45 +0000
Subject: Re: Problems with 301 redirects
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26319@lists.php.net to get a copy of this message
ianevans@digitalhit.com wrote: > I'm using the following code: > > header("Status: 301 Moved Permanently"); > header("Location: mynewurl"); > exit(); Never ever use a Status header. Either set the third param to header() to the intended response status code or use a "HTTP/1.1 301" header string. See http://php.net/header -- Michael

« previous php.internals (#26319) next »