Empty Sitemap

#45232
  • Resolved Jonas Zeschke
    Rank Math pro

    Hello, I have recently tried to convert from YOAST Premium to Rank Math since I love this plugin, and I am using it for multiple sites. I know I have an NGINX Server and need to set up configuration files for the sitemap on the server. But I have had the same configuration file put on for YOAST, so I thought change over to RankMath should be no problem. Turn out it must be a problem. I get a blank page on my Sitemap.

    Is there any known reason why this might happen?

    For now, I have deactivated rank math again and activated YOAST. As my Sitemap are working fine with that plugin.

    Tanks a lot.

    • This topic was modified 3 years, 11 months ago by Jonas Zeschke.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,

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

    I am not quite sure if you are adding the same rewrites that are necessary for the working of Rank Math sitemaps. Just in case, these are the required rewrites that should be added to your Nginx config file:

    # 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

    Let us know if you are adding different rewrites.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hey I know but Yoast requires the same configuration:

    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

    Or is there something different i’m missing`

    So? Any Update? I really want to change to using RankMath 🙁

    Alberto
    Rank Math business

    Hello,

    It might not be an error in your redirections but another kind of error.

    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.

    Okay, but I have deleted the plugin since I don’t want my website to be without Sitemap and end up being penalized by google. So would you be able to install the plugin and import the yoast data. Or is there a way we can schedule a time for the checkup?

    Hello,

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

    Thank you.

    Just added the data for login

    Alberto
    Rank Math business

    Hello,

    The error is now fixed, the sitemap is loading (as you can see in the Sensitive Data section).

    By the way, I have seen you are using Autoptimize and WP Rocket, you should be cautious, since both plugins enable caching on WordPress and you should have only one cache plugin in your installation.

    Thank you.

    WOW! Prefect Support, you guys are awesome!

    Alberto
    Rank Math business

    Hello Jonas,

    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.

    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.

    What was the problem?

    I am having a similar issue though all of my sites on nginx are running into this issue and I have the rewrite rules in the configs. When I press F12 in chrome it is giving me a 404 on the sitemap_main.xml

    Never mind, I figured out what my problem was. It had to do with the browser caching.

    • This reply was modified 3 years, 8 months ago by Adam Blansett.

    Hi Adam,

    We are glad you found the issue and fixed the problem.

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

The ticket ‘Empty Sitemap’ is closed to new replies.