404 monitor with custom redirection

#163798
  • Resolved DTNL
    Rank Math free

    Hi,

    We would loke to setup our 404 monitor with the custom 404 page enabled. It looks like once this option is enabled, the 404 monitor stops working.

    Thanks.

Viewing 1 replies (of 1 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us!

    I apologize as I’m not sure whether I fully understand the question. But I’ll do my best–and please let me know if I misunderstood!

    If you want Rank Math’s 404 monitor to log entries with a custom 404 page, then 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, for more details regarding the updates, you can keep an eye on our changelog: https://rankmath.com/changelog/

    Hope this helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘404 monitor with custom redirection’ is closed to new replies.