Sitemaps continually revert to 404. Permalinks reset. Cached cleared.

#91116
  • Resolved Joe Fletcher
    Rank Math business

    Hi, I’ve read all the Rankmath posts on sitemaps and 404s. I’ve tried the suggestions. I’ve had my prestigious Pressidium hosting support look into this as well.

    The sitemaps will work, but after a while will start 404’ing. I refresh permalinks and clear cache. They work. Some time later, 404 again. We followed https://rankmath.com/kb/fix-sitemap-issues/ and added the rewrite rules, but this did not help.

    # START Nginx Rewrites for Rank Math Sitemaps
    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    # END Nginx Rewrites for Rank Math Sitemaps

    Caching is excluded for those pages (you can verify by viewing the network headers).

    Pressidium said:

    “We have reproduced the issue. We have tried the solution on the 2nd and we had proceeded to add the rewrite rules manually but the issue persists.

    We have check the settings of the plugin WP-Rocket to ensure that there is no issue with the cache of the aforementioned plugin.

    Also, we proceeded to add the code to the functions.php of your theme that mentioned in the article on the URL below:
    https://support.rankmath.com/ticket/in-sitemap-page_sitemap-xml-404-error/

    But the issue still persists.

    We have revert back that change and we have removed the rewrite rules mentioned in our previous message. We have followed every step from the plugin’s Support and we have review plenty of the articles from https://support.rankmath.com/ticket/ that are relative to this.

    We reviewed our configuration on the cache exclusions and everything is as it should be.

    We suggest that you contact the Rank Math support regarding the sitemap issue.”

Viewing 1 replies (of 1 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
    ​​​​​​​
    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    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,

    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 ‘Sitemaps continually revert to 404. Permalinks reset. Cached cleared.’ is closed to new replies.