Sitemap throws HTTP 404 error

#621101
  • Resolved Anonymous
    Rank Math free

    I’ve just installed Rankmath plugin and the sitemap is throwing 404 error I don’t know why it’s happening, I have tried to:
    To save Permalink and tried again.
    Cached the whole site with cloudflare
    Used the provided code on Rankmath site in my .htaccess
    Cached again

    The matter is still there. However, upon installing the XML Sitemap generator, Search Console accepted the sitemap and indexed all of the pages available thereon.

    I’ve already contacted with community’s finest SEOs and still do not know what the answer is

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

    Thank you for your query and we are so sorry about the trouble this must have caused.

    First, would you kindly create a staging site where Rank Math is enabled so we can check the cause and see if the issue is replicated there? This should also let us debug the issue without making changes to the live website. This article may help in setting up one:
    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Once the Staging site is done, please share the login credentials for the Staging site in the Sensitive Data Section:
    Sensitive Data Section

    You can also set up a temporary login for us to use:
    https://wordpress.org/plugins/temporary-login-without-password/

    We really look forward to hearing back from you. Thank you.

    Anonymous
    Rank Math free

    Way too much of instructions for mere support to sitemap. I can’t do all that I’m not a tech pro

    Anonymous
    Rank Math free

    I don’t have any problem with sharing my current site’s credentials with you, if you’d like

    Anonymous
    Rank Math free

    I’ve created and shared temporary login with you sir

    Anonymous
    Rank Math free

    Hi, sir, I have now added the below mentioned code in my site’s .htaccess file (again) to assist you.
    For information, please:-

    # START of Rank Math Sitemap Rewrite Rules
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END of Rank Math Sitemap Rewrite Rules

    Hello,

    Thank you kindly for the temporary login.

    It seems that the issue here is that the Sitemap Module was turned off. I’ve turned it on again and the sitemap seems to be working now. Please refer to the Sensitive Data Section for more information.

    Can you also please check on your end if the sitemap works as intended?

    We really look forward to hearing back from you. Thank you.

    Anonymous
    Rank Math free

    Hi, I’ve just checked and the issue is still there. The sitemap is throwing 404 error

    https://dogquizmania.com/sitemap_index.xml

    Hello,

    We’ve checked your website and we can confirm that the XML Sitemap Generator for Google plugin you’re using on your website is conflicting with Rank Math and that’s why the sitemap from Rank Math was not working properly. After temporarily disabling this plugin, the Rank Math sitemap was working properly:

    Please note that it is not recommended to use more than one plugin for the same function otherwise it can create conflicts. If you want to use XML Sitemap Generator for Google plugin on your website then you disable the Rank Math sitemap module from WordPress Dashboard > Rank Math > Dashboard > Modules.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Anonymous
    Rank Math free

    Even after deleting the previous plugin the sitemap generated by RankMath is still throwin 404 error. What should I do

    Hello,

    So it does look like the Sitemap is fluctuating from showing. I’ve checked this on an incognito and it seems to be appearing quite fine. Please refer to the Sensitive Data Section.

    First, would you kindly try and flush the Sitemap cache by following this video screencast (please note that you may have to activate Advanced mode first to see the hidden settings):
    https://i.rankmath.com/pipRDp

    Second, It seems like you’re using Cloudflare. Would you kindly exclude the Rank Math Sitemap from Cloudflare’s cache?
    https://rankmath.com/kb/exclude-sitemaps-from-caching/#cloudflare

    Please let us know how this goes.

    Anonymous
    Rank Math free

    Nothing’s working!

    Hello,

    Thank you for getting back to us. We sincerely apologize for the inconvenience.

    We’d love to help you get to the root of this issue, but it seems like you have marked this ticket as Resolved. Since your sitemap is still not working, I have kept this ticket as Not Resolved, so you can continue to get help from our team.

    That said, because you previously marked the ticket as resolved, the login credential you shared with us has been cleared. Can you please share the credentials with us again so we can help troubleshoot this issue?

    Thank you for your patience and cooperation. Looking forward to hearing back from 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 12 replies - 1 through 12 (of 12 total)

The ticket ‘Sitemap throws HTTP 404 error’ is closed to new replies.