Hello,
I’m sorry to hear about the issue you’re facing with your Shop page going down intermittently due to a 404 error related to the Rank Math plugin. It’s great that you’ve already identified the plugin causing the problem.
To address the 404 error and bring your Shop page back online, you can try the following steps:
-
Flush Permalinks:
- Navigate to your WordPress admin area and go to Settings → Permalinks.
- Hit the "Save Changes" button once, even if you haven’t made any changes on the page. This action flushes the permalinks and can often resolve such issues.

-
Save Sitemap Settings:
- Visit WP Dashboard → Rank Math SEO → Sitemap Settings.
- Click on "Save Changes" at the bottom of the page to ensure the sitemap settings are updated.
If the issue persists after trying these steps, please let us know, and we’ll be happy to assist further.
Thank you for reaching out.
Best regards,
Rank Math Support Team
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
I have submitted a request for human support. The two advised things do work, which is how I have fixed the issue previously, but this isn’t a permanent fix and my permalink issue keeps returning.
Many thanks,
Tom
Hello,
Thank you for contacting us and sorry for any inconvenience that this issue might have caused.
Please check the PHP values of your site by going to WordPress dashboard > Tools > Site Health > Info tab > Server. These values affect the performance of your site and they should be set at least to the following recommendations:
PHP Memory Limit: 1024M
Max input time: 600
PHP time limit: 240
PHP max input variables: 1000
If any of these values are lower than the recommended ones, please contact your hosting provider and ask them to increase them for you.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hi Ike,
I have contacted my hosting provider and unfortunately the values cannot be changed. They are quite generous already though as shown below. The values that are set are within brackets:
PHP Memory Limit: 1024M (1250M)
Max input time: 600 (60)
PHP time limit: 240 (180)
PHP max input variables: 1000 (3000)
The shop has just gone down again. Seems to be happening very regularly now.
Many thanks,
Tom
Hello,
In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

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/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Since the issue gets resolved when you refresh the permalink it might be that the permalinks are not sticking for more than a couple of hours and that’s why you’re facing this issue frequently.
One route to fixing this issue is to refresh the permalinks programmatically.
To do that, you could add the following snippet to flush the permalinks every hour and prevent the error from appearing:
add_action('my_hourly_event', 'do_this_hourly');
function my_activation() {
if ( !wp_next_scheduled( 'my_hourly_event' ) ) {
wp_schedule_event(time(), 'hourly', 'my_hourly_event');
}
}
add_action('wp', 'my_activation');
function do_this_hourly() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping 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.