404 monitor not working with custom 404 plugin

#154567
  • I am using a plugin with my Themeco “Pro” theme called custom 404 which allows me to create a page and allocate it as my standard 404 page.

    When using this the rank math 404 monitor does not record any 404’s.

    I have tested with other 404 monitor / redirect plugins and they work ok when using the custom 404 plugin.

    Can you check why your 404 monitor doesn’t work please? I would like to continue using rank maths 404 monitor rather than another plugin.

    The Custom 404 plugin docs from Themeco are here: https://theme.co/docs/custom-404

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    The 404 Monitor will only log a URL as 404 if it actually returns a 404 status. Could you please check if the custom 404 plugin you are using is returning an actual 404 and not a 301 redirect?

    You can check your URL status here: https://httpstatus.io

    I hope that helps. Thank you, and looking forward to your update.

    Yes it is using a proper 404.
    I disabled 404 monitoring in your plug-in and started using another plug-in called redirection ( https://wordpress.org/plugins/redirection ). And that one works just fine

    Hello,

    Do you still wish to revert to Rank math 404 monitor?

    If so would you please share a sample URL that we can check status from our end?

    Looking forward to helping you.

    Here is a sample not found page:
    https://www.byggmesterforeningen.no/om-oss/

    Hello,

    Thank you for that additional information.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Thank you, and we really look forward to helping you.

    I have given you access to a development site to try out. See the sensitive data section…

    For you to check: 404’s are not logged when the plugin “Custom 404” is active.
    When using the plugin “redirection” ( https://wordpress.org/plugins/redirection/ ) 404’s are correctly logged, even when Custom 404 is active.

    Hello,

    We are working on a fix to this problem with Rank Math not detecting the 404s when using custom 404 pages or templates.

    For now, please go to /seo-by-rank-math/includes/modules/404-monitor/class-monitor.php

    One Line 45, change this:

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

    To this:

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

    That will fix your issue. In the meantime, we are also working on a better way to implement this solution without breaking certain templates.

    We will notify you when we have an update.

    Thank you.

    Thank you for investigating this.

    Hello,

    We are super happy that we have addressed your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)

The ticket ‘404 monitor not working with custom 404 plugin’ is closed to new replies.