Forum Moderators: phranque
I have an off the shelf PHP driven directory with a custom 404 page. It is a HTML page called 404.html. Obviously if a page is not found the 404.html is served. It has just struck me that I have never seen a 'real' 404 in my logs, always a 200. Links are deleted from the directory every now and then but I have noticed bots are still getting the 200 when requesting a page that does not exist.
ie www.example.com/live-page.html = 200
ie www.example.com/nonsense-jklhybg.html = 200
Could anybody explain how to make a real 404. I mean, how do I get my server to return a 404 for pages that do not exist instead of re-directing to 404.html and getting served a 200.
TIA
Ska