[NGINX] xsl file

#57549
  • Resolved Davide Prevosto
    Rank Math free

    I there,

    I have looked at your docs and I have added this in my NGINX conf:

    # 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

    What about xsl file? I have added this line:

    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xsl$ /index.php?xsl=$1 last;

    Do you think this is a good idea/solutions?

    Thank you

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

    Thank you for contacting Rank Math today.

    XSL is a stylesheet file you won’t be needing any rewrite rule for that. Still, if it’s not working you can try adding the following Rewrite rule:

    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]

    I hope that helps. Thank you.

    Hello Patrik, thank your for your reply.

    XSL file return a 404 error on our NGINX webserver, the rule you posted is about Apache webserver.

    This one:
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xsl$ /index.php?xsl=$1 last; it seems it solves the issue.

    My best

    Todd
    Rank Math free

    Hi Davide,

    Our bad.

    We are glad that the issue is resolved now.

    If you need help with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

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

The ticket ‘[NGINX] xsl file’ is closed to new replies.