I am using PHP input on my site to manage the pages easier, and I want ALL 404 errors to go to this custom 404 page I made. Now I am saying ALL because I made a .htaccess file and that redirects the 404 error to the custom one I made, but when its a PHP error, it goes to the original PHP error line. Here is the code I am using. Should I jus be able to add another else go to 404.php (my custom 404 error page)? Thanks for the help in advance guys.
Code:
<?php if($id == "") { include("headlines.php"); include("news/news.php"); } else { include("$id.php"); }?>