• Resolved aaron843

    (@aaron843)


    I have 404 errors that I’ve replicated in testing from broken external links. These 404s are not showing up in Rank Math 404 Monitor. Rank Math SEO Version 1.0.115.

    I am using Smart Custom 404 error page [404page] Version 11.4.3 | By?Peter Raschendorfer

    I have tried it both with and without “Force 404 error after loading page”

    Still, some 404s are not recorded by Rankmath SEO. (last entry is 2023-05-10)

    I have followed the advice here: https://support.rankmath.com/ticket/404-monitor-doesnt-work/ but it did not remedy the situation

    I have installed Redirection Version 5.3.10 | By John Godley. This plugin successfully monitors all 404s. Perhaps Rank Math can look at what this plugin is doing and use that logic to make sure 404s are not missed.

    Although having a separate plugin for 404s/redirection is working fine, I’d like to be able to handle this as part of the SEO plugin. Since people who fine tune their websites often use a custom 404, I’m wondering if there’s a better integration. Perhaps even Rank Math providing a custom error page function or at least coordinating with one or more makers of these.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @aaron843,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please share your website URL here so we can take a closer look at those 404s?

    Also, please ensure that the 404 page returns an actual 404 response code which you can test here: https://httpstatus.io/

    If the issue persists, please make sure that the database table for your 404 logs is created.

    Let us know how that goes.

    Thread Starter aaron843

    (@aaron843)

    Thanks for that input. The issue indeed persists.

    I used https://www.webfx.com/tools/http-status-tool/ to check that I’m indeed getting a 404 status code. (the tool you recommended gets blocked by my hosting firewall)

    I’m happy to provide you with the URL of the site privately, if you’ll provide instruction for doing so.

    A log of 404 errors does indeed exist in the database.

    I also wonder if their might be clues in the code of Redirection?By John Godley, which does log all 404 errors. As I mentioned, I’m using this currently as my logging method.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @aaron843,

    Please change the code on line 46 in the /seo-by-rank-math/includes/modules/404-monitor/class-monitor.php file with the following:

    $this->action( 'wp', 'capture_404' );

    404 Monitor will be able to log the 404 errors after that.

    Let us know how that goes. Looking forward to your update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rank Math not recording 404 errors’ is closed to new replies.