Forum Moderators: phranque
So I made a custom page, 'nopage.php'.
Then I created an .htaccess file, redirecting 404 errors to 'nopage.php'.
Heres what happened.
If you enter in a bogus path or .htm, html extension, it works great! Hurray.
BUT, if you enter .php extension, or your link is to a missing .php file, I get 'Internal Server Error' page.
My guess is that PHP is returning an error, instead of page not found.
Now, I can't add 500 to 'nopage.php', because then everytime there IS an internal server error, it will report it incorrectly and just say 'nopage.php'.
So how do I create a 'nopage.php' that handles a missing PHP file?