Forum Moderators: coopster
The content management system then tries to extract this page from the database and if it doesn't exist, sets a page header as follows
header("HTTP/1.0 404 Not Found");
The only problem is that instead of the user seeing the 404.shtml which is on the server, they just see a blank page. The status code returned is correct though.
I've tried adding a second line as follows
header("Location: /404.shtml");
But this ofcourse results in a 302 as the file 404.shtml can be found.
So I'm wondering how could I have my users referred to the correct 404.shtml and receive the correct 404 status.
any suggestions?