note 81584 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Mon, 12 May 2008 10:20:44 +0000 |
| Subject: | note 81584 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139301@lists.php.net to get a copy of this message | ||
Note Submitter: someone
----
Below there is a simple way to get the 'impossible' - redirect with 404 code.
Simple combinations with
header("Location: /", false, 404")
has no influence on the real redirect statement (the website isn't redirected, but you get
proper 404 HTTP status message).
To get proper redirect with 404 status code you should use
header("Refresh: 0; url=/", false, 404)
- even with 0 seconds redirect as above.