note 86125 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Sat, 04 Oct 2008 07:09:26 +0000 |
| Subject: | note 86125 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145041@lists.php.net to get a copy of this message | ||
Note Submitter: Tobias
----
Beware of the comments about header( "location:..." ). Some comments recommend to redirect
to relative paths, but the RFC clearly states:
--quote--
For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic
redirection to the resource. The field value consists of a single absolute URI.
--/quote--
So "location:/example.php" ist wrong, but "location:http://www.example.com/example.php" is
correct.