How to setup xslt rule for nginx

#365436
  • Resolved chintanpromact
    Rank Math free

    The sitemap xml loads properly but xsl file required for styling is not loading as the current rules in documentation only address XML part of the solution. Can you please provide xsl part of configuration for nginx to fix the issue.

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

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Can you please share the URL of your site in the sensitive data section so we can check and assist you further?

    Looking forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Can you 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 me know if that does not. We are here to assist.

    It did not solve the issue

    Hello,

    The URL /?xsl=main should be rewritten to /main-sitemap.xsl (the rewrite pattern looks like this: '/([a-z]+)?-?sitemap\.xsl$/' => '?xsl=$1').

    We would like to add that the only purpose of the XSL file is to make the sitemap “human-readable” so in terms of SEO it doesn’t make a difference. Google will still see the sitemap correctly, even without the XSL. And, if you send in the correct /sitemap-index.xml to Google in Search Console, then the /sitemap.xml redirection isn’t important either.
    In other words, these issues will not hurt your SEO.

    Hope this helps clarify your doubts.

    Don’t hesitate to get in touch if you have any other questions.​​​​​​

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘How to setup xslt rule for nginx’ is closed to new replies.