Trap referer on missing.html 404's

software development


I have customized my 404 error page. that works great. But I would like to review what pages users are trying to hit that are missing. I am thinking about writing something to parse through a log file, or immbed a function in my missing.html page to alert me as to what page was called as missing.

This must a be something, everyone – but me has addressed. Any ideas? What would you/or did you do for same?




Look through your access_log files and find the requests whose status code is 404 (instead of 200 or 304). The URLs in those lines are the ones that the server responded to with the 404 error and the content of missing.html

Your analog reports (at might also have a section on this.