Issue with sitemap error 404

#959988
  • Resolved Charles
    Rank Math free

    Hi,
    I am contacting you because I have a problem with my Rankmath sitemap.

    I have a custom taxonomy that triggers a 404 error.
    Everything else works fine, plus I have a second custom taxonomy and the sitemap works great for that one, only one cause a problem. I’ve already tried clearing cache, saving permalink structure, adding Apache rules, my custom taxonomy is set to “index”, I’ve disabled sitemap caching; nothing works…

    Can you help me?
    Thanks in advance.

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

    We apologize for the issue you are facing with your Rank Math sitemap throwing a 404 error for your custom taxonomy. Since you’ve already tried several troubleshooting steps, here are a few additional suggestions that might help:

    1. Flush Permalinks Again: Sometimes, flushing permalinks can resolve issues that persist. Go to Settings → Permalinks in your WordPress admin area and click the “Save Changes” button again, even if you didn’t make any changes.
      Flush permalink settings

    2. Check Custom Taxonomy Registration: Ensure that your custom taxonomy is registered correctly and that it supports the necessary features, such as public and hierarchical. You can refer to the WordPress Codex on Custom Taxonomies for more details.

    3. Review .htaccess or Nginx Configuration: Since you mentioned adding Apache rules, ensure that they are correctly implemented in your .htaccess file. If you are using Nginx, make sure the rewrite rules are properly set in your Nginx configuration file.

    4. Check for Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap functionality. You can use the Health Check plugin to check for conflicts without affecting your live site.

    5. Custom Rewrite Rules: If your custom taxonomy has specific rewrite rules, ensure they are correctly set up in your theme or plugin code.

    If these suggestions do not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further. Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

    We would like to apply the following code to ensure Rank Math’s sitemap is not cached:

    
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    However, your admin dashboard doesn’t have access to the theme files. Can you please apply the filter code we shared by following this guide?

    If the issue persists, please share your website’s FTP login instead.

    Looking forward to helping you.

    Hello,

    I added the code in my theme function.php but it still doesn’t work.

    I updated the sensitive data as requested. I gave you the FTP credentials.

    Thank you.

    Hello,

    We checked your website and found that the issue is occurring because of a conflicting issue. We activated the Rank Math, WooCommerce, and ACF plugins only and the sitemap started working properly. Please check the screenshot in the sensitive data section for reference.

    In this case, we suggest you follow this troubleshooting guide to identify the culprit plugin: https://rankmath.com/kb/check-plugin-conflicts/

    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.

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

The ticket ‘Issue with sitemap error 404’ is closed to new replies.