Problem with SiteMap

#66245
  • Resolved Marcelo Gussakov
    Rank Math free

    Good morning, everything ok?

    So, I’m stuck with this problem, we have some WordPress sites and use the plugin Rank Math, we’re trying to create the sitemap file by the plugin, but it’s not creating at the server. I tried to change the permissions on the server and put 777 in the folder, didn’t work either

    Can you guys help me? We’ll try to create the file manually, but has to refresh the file weekly

    I tried to do what you have in the support area, saving the permanent links and tried again and nothing

    Please, can anyone help up?

    Thank you very much

    P.S My server is based on NGINX

Viewing 6 replies - 1 through 6 (of 6 total)
  • one more here!

    Hello,

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

    This is likely your Nginx server is preventing the creation of the sitemap file.
    Please try add the following rewrite rules to your Nginx config file to fix this:

    
    # 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
    

    I hope this info helps. Thank you.

    Thanks! It’s is working in a test site

    But when i tried to put that on the main site i get “file not found”

    If i’m using wordpress in a subdrectory is it correct to configure that way?
    Ex: i’m using in a /hub

    # START Nginx Rewrites for Rank Math Sitemaps
    rewrite ^/hub/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/hub/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    # END Nginx Rewrites for Rank Math Sitemaps

    Thanks

    Hello,

    Have you tried adding the code as provided without the /hub ? Could you please do and let us know how it goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Yes, i tried. It return’s 404

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP and 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.

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

The ticket ‘Problem with SiteMap’ is closed to new replies.