Actions
Bug #396
closedCan't send Status Header with PHP
Status:
Invalid
Priority:
High
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:
No
Description
I want to send a 404 not found header using php... but the server all ways returns the 200 ok no matter what I do!
I tried this and it does nothing:
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
?>
Updated by Anonymous over 19 years ago
With lighttpd 1.4.8 and PHP 5.1.1 on Mac OS X 10.4.3, either or both of header('HTTP/1.0 404') or header('Status: 404 Not Found') work correctly for me.
-- lighttpd-2005
Updated by jan over 18 years ago
- Status changed from New to Fixed
- Resolution set to worksforme
header("Status: 301");
header("Location: http://www.example.org/");
?>
works as expected.
Updated by stbuehler over 16 years ago
- Status changed from Fixed to Missing Feedback
Updated by gstrauss about 1 year ago
- Description updated (diff)
- Status changed from Missing Feedback to Invalid
- ASK QUESTIONS IN Forums set to No
Reported behavior sounds like server.error-handler-404
expected behavior. See doc for server.error-handler-404
Actions
Also available in: Atom