Add General System Log for Error 404 in ISC

This mod will record all error 404 as general log in System Log so you can monitor and fix broken links.

In /includes/classes/class.404.php

Find

ISC_REDIRECTS::checkRedirect($_SERVER['REQUEST_URI']);

Replace

ISC_REDIRECTS::checkRedirect($_SERVER['REQUEST_URI']);

// MOD - log error 404
$GLOBALS['ISC_CLASS_LOG']->LogSystemNotice('general', 'Error 404', $_SERVER['REQUEST_URI']);

Leave a Reply

Your email address will not be published. Required fields are marked *