Page 1 of 1

http headers

Posted: Wed Jun 03, 2009 9:31 am
by jazz090
i have set up custom error pages with apache but there not being displayed when i throw something like this in:

Code: Select all

header('HTTP/1.1 404 Not Found');
any ideas how to fix this?

Re: http headers

Posted: Wed Jun 03, 2009 11:12 am
by Mark Baker
header('HTTP/1.1 404 Not Found'); doesn't tell Apache to display the custom 404 page that you have configured in httpd.conf, it sends that response back to the browser.... your script is controlling the 404 response directly