Error 404 for Sitemap url

#69660
  • Resolved Alaa Hariri
    Rank Math free

    Dear RankMath team,

    Thank you for your support and for your efforts on this Free WordPress Plugin.

    I am using Nginx as a webserver to host my WordPress site on AWS VPS. I have installed your plugin correctly. However, the Sitemap url is not working.

    I have added the required configurations shown on your settings pages with no luck onto my Ngix configuration file.

    I am attaching a copy of my Nginx Conf settings.

    I hope you can assist me to get the url of my sitemap.xml be accessible.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Alberto
    Rank Math business

    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 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,

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

    Thank you.

    Hello,

    Thank you for your reply and support.

    I have added the required credentials.

    Waiting for your fix.

    Thanks.
    Alaa

    Hello,

    Thank you for the details update.

    Could you please add some ftp access with write permissions so we can dig deeper into this issue.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

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

    Thank you.

    Hello,

    Please note that I used to access my server via Keypair authentication file using SFTP protocol. Therefore, I hope you download the file in the link provided. Use password to access the file. Then, you can use the file to SFTP to my server.

    Waiting for your positive reply.

    Thank you very much for your support. Appreciate it.

    Alaa

    Hi,

    I have added the following code to your Nginx configuration file at
    /etc/nginx/sites-enabled/domain.technology.conf

    I have renamed your previous one to domain.technology.conf.bak

    Please restart your Nginx server for the changes to take effect. The sitemap files will work fine after that.

    In the meantime, your sitemap is also accessible at https://domain.technology/?sitemap=1

    And your page sitemap at https://domain.technology/?sitemap=page&sitemap_n=

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

    Hello,

    Any update!

    Regards,

    Hello,

    I updated the Sitemap rules in your site’s config file. Please restart your Nginx server and check again. If this too doesn’t work then probably your server is not reading this config file. In this case, please contact your hosting team to confirm the rewrite rules in the config files are not blocked.

    I hope that helps.

    Hello,

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

    Thank you.

    Dear Rank Math team,

    It is ok now. Thank you very much. Firstly, when I restarted the nginx server, it throws an error nginx error:“location” directive is not allowed here in...

    I edited it as location should be inside Server directive.

    Then, It works fine. Thank you very much.

    I have a request, please. In one of my replies here https://support.rankmath.com/ticket/error-404-for-sitemap-url/#post-70762 I have mentioned my web url thinking that It is not public. Could you please edit this post and disguise my domain name.

    Thank you!

    Alberto
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you. (I have also edited your URL in the other thread)

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.