note 19359 added to function.header
| From: | mike dot hall at opencube dot co dot uk | Date: | Mon, 25 Feb 2002 15:14:07 +0000 |
| Subject: | note 19359 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27008@lists.php.net to get a copy of this message | ||
The HTTP/1.1 spec demands that all Location redirects use an absolute URL.
For example:
Header("Location: /index.php");
is not allowed, you should always use
Header("Location: http://mysite.com/index.php");
Most browsers can handle relative redirects under normal circumstances, but to be absolutely sure
your script will work as intended, you should stick to the spec and use absolute redirects.
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+19359
http://master.php.net/manage/user-notes.php?action=delete+19359
http://master.php.net/manage/user-notes.php?action=reject+19359