Is there a way (other than checking the web server logs) to get the URLs of requests creating a "404 error"?
I have redesigned a web site but I have some "404 error" responses, since some folks have bookmarks set to old pages and I do not cover them all.
I’d like to see which URLs are they requesting.
-
MODX Staff
- 12,272 Posts
Theoretically you could create a plugin that watches for requests to the page that sends the 404 ... interesting idea.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
Nothing has been done to date. Thanks for digging in!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
$modx->logEvent might be of use to store a message in the event log
Yes, I’ve seen it. But have a different idea about it.
There can be many entries and they are not as such (at least in my opinion) system events + in a module of its own I can add other functionality. Give me a day or two and something will come out.