How to remove stylesheet from sitemap with RankMath SEO Plugin

#763975
  • Resolved Anonymous
    Rank Math free

    I want to remove sitemap style sheet like I don’t want people to easily see my sitemap.xml.

    I want to show it like:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    You know so it’s hard for anyone to see my website is made on WordPress and using any kind of WP plugin. Please respond me quickly otherwise I have to use third party sitemap plugin.

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

    I apologize for the inconvenience you are facing. To remove the stylesheet from your sitemap using the Rank Math SEO plugin, you can follow these steps:

    1. Exclude Sitemaps from Caching:

      • You can exclude your sitemap from being cached by following the instructions provided in this knowledge base article.
      • This will ensure that your sitemap is not cached and will not display any styling information.
    2. Disable the Local-Sitemap.xml:

      • If you want to disable the local-sitemap.xml specifically, you can follow the steps outlined in this guide.

    By following these steps, you can ensure that your sitemap does not display any styling information, making it harder for others to identify the plugins or platform used on your website.

    If you need further assistance or have any more questions, feel free to ask. Thank you for reaching out!

    Sources:
    How To Exclude Rank Math Sitemaps from Caching » Rank Math
    Is It Possible to Disable the URL /local-sitemap.xml? » Rank Math
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

    Thank you for contacting Rank Math support.

    You can create a server rule to block the main-sitemap.xsl file. Once done, the sitemap links will only be visible in the page-source and show an error in the front end. The search engines will still be able to read the sitemap.

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

    Anonymous
    Rank Math free

    I searched on internet but didn’t found any, can you please attach article link or help me with detailed steps.

    Hello,

    The /main-sitemap.xsl needs to be blocked from your server side. In this case, we suggest you get in touch with your hosting provider as they’re in a better position to assist you with this one.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    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 ‘How to remove stylesheet from sitemap with RankMath SEO Plugin’ is closed to new replies.