rankmath attachment-sitemap.xml error 404

#837304
  • Resolved Arya
    Rank Math free

    hi dear rankmath team

    I have been working with WordPress and many plugins for 20 years,
    In these 20 years, I worked with numerous SEO plugins,
    The Rank Meth plugin has a bug that none of the SEO plugins have,
    attachment-sitemap.xml error 404,
    To view, it is enough to install a raw WordPress without any additional information and install the Rank Meth plugin

    Disable the redirect related to the images in the rankmath and add the attachments to enable the site map and then you will see that the attachments give an error.

    site/attachment-sitemap.xml

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

    Thank you for reaching out to us regarding the issue you are facing with the Rank Math plugin and the attachment-sitemap.xml error 404.

    To address the problem with the attachment-sitemap.xml error 404, you can follow these steps:

    1. Disable the redirect related to images in Rank Math.
    2. Add the attachments to enable the sitemap.

    By following these steps, you should be able to resolve the error with the attachment-sitemap.xml. If you encounter any difficulties or need further assistance, please let us know.

    If you need additional help or if the issue persists after following the steps above, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for your understanding.

    Best regards.

    Sources:
    The #1 WordPress SEO Plugin in 2024 – Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Arya
    Rank Math free

    I am a programmer and server manager and I have enough experience, I have checked thousands of things and I am sure that this is a bug of the plugin that should be checked and fixed by you as the developer team.

    Arya
    Rank Math free

    I checked all the documents provided on the Rank Meth site to fix the sitemap error, it has no effect and this bug is from the plugin itself, I checked on 5 different sites and all of these sites have problems.

    Arya
    Rank Math free

    I’ve checked all of these plus many more, I’m pretty sure the problem is related to the plugin and has nothing to do with the issues mentioned in the link you provided.

    Hello,

    Thank you for contacting Rank Math support.

    This is not a bug. The attachment URLs are set to Noindex by default because they shouldn’t be indexed, as they don’t have much content and can cause thin content issue. Please navigate to WP Dashboard > Rank Math SEO > Titles & Meta > Attachments, enable the Media Robots Meta, and set it to Index.

    The attachment sitemap will work fine after that.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Arya
    Rank Math free

    According to my review, this bug exists in all previous versions of Rank Meth . The error that leads to 404 is as follows.
    Incorrect http header content-type: “text/html; charset=UTF-8” (expected: “application/xml”)

    https://www.xml-sitemaps.com/validate-xml-sitemap.html

    Hello,

    Please set the Media Robots Meta to Index and if the sitemap still returns a 404 error, please follow these steps:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    That should fix the issue.

    Please let us know if that does not. We are here to assist.

    Arya
    Rank Math free

    Thank you!
    That’s right, that was the problem
    I suggest that you explain this issue in the educational link related to the 404 Rank Meth error, because maybe some users, just like me, are involved in this issue for hours and this feature needs to be active.

    Arya
    Rank Math free

    My dear friend Jaideep Asrani, the problem was solved in the first guide, and thank you, please pay attention to the advice I gave in the previous answer, maybe it will make other friends not have this problem.

    Arya
    Rank Math free

    Thank you My dear friend Jaideep Asrani
    That’s right, that was the problem

    Hello,

    We are super happy that this resolved your issue.

    I have shared your suggestion with the concerned team and they will look into it.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘rankmath attachment-sitemap.xml error 404’ is closed to new replies.