note 91784 deleted from function.header by thiago

From: Date: Thu, 25 Jun 2009 12:30:34 +0000
Subject: note 91784 deleted from function.header by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157477@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- @andre at luyer dot nl Your code is mostly correct, however as PHP doesn't realise that a 301 has been sent, it still sends the 302. Try sending an HTTP header instead of Status to get the correct results: header( "HTTP/1.0 301 Moved Permanently" ); # 301 Moved Permanently header( "Location: http://".CLIENT_DOMAIN."{$_SERVER['REQUEST_URI']}" );

« previous php.notes (#157477) next »