Forum Moderators: phranque
You will end up with a 404 "page" that will be invoked by Apache if it cannot find content to serve based on a file-exists or file-does-not-exist test. Then your script wil contain a 404 error reporting function of its own that does the same thing based on a database-record-exists test. Both of these php scripts can call or include the same shared function, but as "pages" they will be separate things.
I hope that is explained clearly enough... The problem is not with Apache, but rather with your expectations.
Jim