You currently don\'t have any data in the 404 error log. That means that you either just installed the plugin, or that you never had a 404 error happen which is
awesome!';
} else {
echo '
Need a more detailed 404 error log? With more data, more insights, per-day stats & an easier way to create redirect rules from 404 errors? Want to have a centralized log for all your websites in one place?
Upgrade to WP 301 Redirects PRO.';
echo '
';
echo '';
echo '| Date & Time | ';
echo 'Target URL | ';
echo 'User Device | ';
echo 'User Location | ';
echo 'Referal URL | ';
echo '
';
foreach ($log as $l) {
$ua = \epsdonatj\UserAgent\parse_user_agent($l['user_agent']);
$agent = trim(@$ua['platform'] . ' ' . @$ua['browser']);
if (empty($agent)) {
$agent = 'unknown';
}
echo '';
echo '| ' . esc_attr(human_time_diff(current_time('timestamp'), $l['timestamp'])) . ' ago | ';
echo '' . esc_attr($l['url']) . ' | ';
echo '' . esc_attr($agent) . ' | ';
echo 'Available in PRO | ';
echo 'Available in PRO | ';
echo '
';
} // foreach
echo '
';
echo '
By default, the log is limited to the last fifty (chronologically) 404 errors. This is a safe number that ensures the log works on all sites and doesn\'t slow anything down. ';
echo 'The code imposes no limits on the log size and you can easily overwrite the default limit by using the eps_301_max_404_logs filter. Details are available in the FAQ.
';
echo '
If your site gets hundreds and thousands of 404 errors a day we suggesting upgrading to WP 301 Redirects PRO as it automatically fixes 404 errors caused by URL typos, provides a more robust log that can handle tens of thousands of entries, and offers more tools to manage 404 errors.
';
} // if 404
?>