Hello,
Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.
Can you please share the affected URL with us so we can further check it on our end?
Looking forward to helping you on this one.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Please navigate to WP Dashboard > Plugins > Plugin Editor and select Rank Math SEO and go to /seo-by-rank-math/includes/modules/404-monitor/class-monitor.php
One Line 46, change this:
$this->action( $this->get_hook(), 'capture_404' );
To this:
$this->action('template_redirect', 'capture_404' );
Let us know if that helps.
We look forward to helping you.
Hi Anas,
yeah it’s working but I can’t consider it as a solution because every time I update the plugin I lose this change.
Do you have an ideas?
Hello,
Currently, our 404 Monitor only logs a URL as 404 if it actually returns a 404 status.
Ideally, we would like to support every single theme and the way they handle the 404 pages but our dev team had to make a decision to support themes that actually report a 404 status code instead of showing a custom page.
For now, we’ll recommend making the changes to the plugin file to fix this. However, our devs are working on a better way to implement this solution.
Sorry for the inconvenience and thank you for your patience with this matter.
Hi Anas,
ok I’ve got it. It just weird for me because if you look for WP hierarchy for example here https://wphierarchy.com/ you can see that 404.php is a part of WordPress basic hierarchy system. So I would expect you to register this page (which is not some custom page but 404.php template) to the log.
But I understand that this doesn’t work now and I’ll have to wait for the new versions.
So thanks for info.
Hello,
We are glad we could help resolve your 404 logging. If you have any other questions in the future, know that we are here to help you.
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.