Why do I have a page hit for 404.php after each legitimate pagehit?
Posted
by Nathan Long
on Stack Overflow
See other posts from Stack Overflow
or by Nathan Long
Published on 2010-05-12T20:41:52Z
Indexed on
2010/05/12
20:44 UTC
Read the original article
Hit count: 212
I'm working with an intranet system that, on each page, checks the user's cookie, verifies that they can see the current page based on database permissions, and records a page hit that includes their id and the page URL.
I just noticed that in the pagehits table, I see an entry for 404.php (my custom 404 page specified in the Apache config) one second after each legitimate page hit.
Is this probably my fault, or does it have something to do with how Apache decides to load the 404 page?
I'm using Apache 2.2.14 (Win32) and PHP 5.3.2.
© Stack Overflow or respective owner