note 54833 added to function.header

From: Date: Sat, 16 Jul 2005 22:14:58 +0000
Subject: note 54833 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-92061@lists.php.net to get a copy of this message
When redirecting a page permanently, it isn't generally sufficient to do the following: header ('Location: '.$txLocation); as this issues a 302, and search engine bots don't treat this correctly; the receiving page will not receive 'credit' for the link, so to speak. A 301 has to be issued, thus: header ('HTTP/1.1 301 Moved Permanently'); header ('Location: '.$txLocation); ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54833 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54833&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54833&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92061) next »