Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
I see, you're including a text file, not making a database query. Still, the solution isn't difficult. Check for the file, before any HTML is outputted, and if it doesn't exist, redirect to the 404 page, and be sure to send a real 404 header from that file. Either that, or include text from a file, say "404.inc", and send 404 header right in the index.php page, which won't matter since it appears you are rewriting that page URL.
|