I\'d like to use the following to redirect pages that are no longer present in the database to the custom 404 page:
ob_start(); .... if ( !$found ): header
You can't have an header 404 with a Location:
You should display the error page and set a meta refresh with the new url if you want to redirect
meta refresh