April 11, 2009 0

Custom Error Page

By in PHP, Websites

Reminder, when creating a custom error page do NOT forget to return the correct HTTP status code (404).

PHP code:

header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");

Tags: ,