NGINX Redirection Error

#78580
  • Resolved Pramathesh Saha
    Rank Math free

    I copied the following code on my installation

    # 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

    and got the following error on my console.

    nginx: [emerg] “rewrite” directive is not allowed here in /etc/nginx/nginx.conf:63

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hi Michael,

    It’s set up on DO with no FTP. Working primarily over the terminal. Do let me know how you would like to go ahead in this case?

    Alberto
    Rank Math business

    Hello,

    I guess you could share the WordPress login details and also some terminal access so we can check the configuration that way. If you have doubts about how to share it in a secure way, please check the post my colleague shared.

    Looking forward to help 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 3 replies - 1 through 3 (of 3 total)

The ticket ‘NGINX Redirection Error’ is closed to new replies.