Forcing the 404 Page to Send the Proper Headers
If the 404 Page does not send the proper headers, that is the HTTP Status Code is not 404 Page Not Found, then this will result in incorrect crawling and indexing of such a page by search engines.
To avoid this, when customizing the 404 Page add these two lines at the top of the page.
<?php [...]

, or by using our