Issue with Rank Math – WooCommerce Remove Category Base causing 404 Errors

#598028
  • Resolved Anonymous
    Rank Math free

    Dear Rank Math Support Team,

    I hope this email finds you well. I am writing to seek assistance regarding an issue I am facing with the Rank Math plugin when enabling the “Remove category base” feature in WooCommerce.

    The problem I’m encountering is that after enabling this feature, some category base links intermittently display a 404 error page instead of loading the correct content. For example, the URL https://www.shopalot.pk/beauty-health/skin-care/ occasionally shows the 404 error, while at other times, it functions correctly.

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

    Thank you for your query. We will be super-happy to help you with your concern.

    First ensure you are using the latest version of Rank Math.

    After that clear your website cache including any server-level caching services like Cloudflare. You may also head over to your WordPress Dashboard > Settings > Permalinks and click the “Save” button without changing anything.

    If that doesn’t help, please get in touch with your web hosting provider and reach out to them to see if it is not a server related configuration issue.

    After that, observe if you are still experiencing the 404.

    If the issue persists, let us know and leave us your WP admin access in sensitive data field.

    We hope that helps and we are here should you have any follow-up questions.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    The category link you have shared is still working upon checking.

    We’ve seen this issue in the past where the permalinks are not sticking for more than a couple of hours, and the most common fix for this kind of 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();
    }

    And here’s how you can add the filter to your site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    P.S. I have not yet applied the filter on your site.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Anonymous
    Rank Math free

    Please applied the filter on my site. becasue i donot know about these things.

    Hello,

    I have already applied the filter using the Code Snippets plugin so it won’t be removed once your theme updates:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#code-snippets-plugin

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    we are still face this error 404

    Hello,

    Apologies for the inconvenience.

    I’ve updated the filter to function properly on your site.

    In this case, please clear your website and browser’s cache. Once done, monitor if they are still returning 404 error.

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    when i am open a wordpress admin page then links working. check another system then link not working 404 eror face, please check care fully what issue. becasue my website traffic disturb. i hope you understand. thanks

    Hello,

    We have checked the category pages, but we’re unable to replicate the issue.

    Could you please share the affected URL/s so we can investigate further?

    If possible, you can record a video screencast using a tool like Loom showing the issue so we can also check it.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    REMINDER

    Anonymous
    Rank Math free

    Hello,

    Unfortunately, we can’t replicate the issue on our end. All the links you shared are loading fine even on an incognito window. Please see the screenshot:

    Rank Math support

    Rank Math support

    Please get in touch with your web host and ask them to set at least the following values and see if that improves the situation:

    
    Max input time: 150

    If that doesn’t help, I would suggest checking with your hosting provider to investigate further.

    Looking forward to helping 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 13 replies - 1 through 13 (of 13 total)

The ticket ‘Issue with Rank Math – WooCommerce Remove Category Base causing 404 Errors’ is closed to new replies.