Problem with post-sitemap.xml

#943240
  • Resolved Rafal Gicgier
    Rank Math free

    Hey Team,

    I have a problem with a client hosted on Flywheel with post-sitemap.xml that I can’t sort out.

    First, I tried all of the steps found in your KB article: https://rankmath.com/kb/fix-sitemap-issues/, working closely with Flywheel support. Nothing helped out, i.e., we purged the cache, resaved the permalinks, added WP Rocket and cache exclusions, purged the cache, modified the NGinx rules, and resaved both the Permalinks and Rank Math settings—to no avail.

    Then, we tried running that on Vanilla WordPress, again to no avail.

    In a nutshell, every sitemap works fine but the post-sitemap.xml doesn’t list anything but the blog page.

    I’ll post site links, under the sensitive data.

    Could you do me a favour and give some insights on how we could make those posts appear? Oddly enough, they do appear on the live website: https://elendsolutions.com/post-sitemap.xml.

    Let me know if that’s enough data for you!

    Sincerely,
    Rafal Gicgier

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

    We apologize for the issue you are facing with the post-sitemap.xml not listing your posts correctly. Thank you for providing detailed information about the steps you’ve already taken.

    Since you’ve already tried flushing permalinks, purging cache, and modifying Nginx rules without success, here are a few additional things to check:

    1. Check Post Visibility: Ensure that the posts you want to appear in the sitemap are set to "Public" and not set to "Private" or "Draft."

    2. Sitemap Settings: Go to Rank Math SEO → Sitemap Settings and verify that the post types you want included in the sitemap are checked. If they are unchecked, they won’t appear in the sitemap.

    3. Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Rank Math includes a self-referencing canonical by default, so consider removing any custom canonicals if applicable.

    4. Plugin Conflicts: Since you mentioned running on Vanilla WordPress, ensure that no other plugins are interfering with Rank Math’s functionality. You can use the Health Check plugin to help identify any conflicts.

    5. Check for Errors: Look for any errors in your sitemap by checking the source code of your post-sitemap.xml. Ensure there are no blank spaces or errors at the beginning of the file, as this can cause issues.

    If after checking these points the issue persists, please reply to this ticket with any error messages or additional details, and a human agent from our support team will assist you further.

    We hope this helps you resolve the issue!

    Rafal Gicgier
    Rank Math free

    Hey again,

    All of these have been checked as well 🙂

    Thank you!

    Hello,

    Please follow the steps below to see if it works for you.

    #1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    #2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    #3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Once done, remove all your submitted sitemaps and resubmit your main sitemap only.

    Let us know how this goes.

    Rafal Gicgier
    Rank Math free

    Hello Adetayo,

    Thank you for your quick reply.

    I did all of that just now to no avail.

    Any other tips?

    FYI: We have some custom redirect rules in place, that force all blog entries to be prefixed with /blog/ this however is also present in production.

    Could this be the .htaccess password?

    Regards,
    Rafal

    Hello,

    To investigate this issue further, we might need to take a closer look at your website and settings. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress and FTP logins in the Sensitive Data section. This is a secure section that only our support staff can access.
      Sensitive Data Section
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this 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 also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience.

    Thank you for choosing Rank Math.

    Rafal Gicgier
    Rank Math free

    Hello,

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

    Thank you.

    Rafal Gicgier
    Rank Math free

    Hello Adetayo,

    Thank you a lot for quick replies. I have just added these.

    Regards,
    Rafal

    Hello,

    We tried accessing your admin dashboard but we can’t locate it. We tried accessing /wp-admin or /wp-login.php but it doesn’t seem to work. It is showing a 404 page instead.

    Can you please share the correct WP admin URL of your website here so we can debug the issue further?

    We are looking forward to helping you.

    Rafal Gicgier
    Rank Math free

    Hello,

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

    Thank you.

    Rafal Gicgier
    Rank Math free

    Hey guys,

    I forgot we had the WPS Hide Login active. Updated the credentials.

    Apologies & thank you!
    Rafal

    Rafal Gicgier
    Rank Math free

    Hello, again team,

    FYI: For whatever reason the sitemap is working correctly right now. I am not sure if you have made any changes via SFTP or not, but it’s correct.

    It could be the cache, or it could be me adding the HTML sitemap, or it could be someone else from my team figuring this one out. I have no idea which was, but the problem is gone.

    So, I guess we’re done here. Huge thanks for your quick replies and willingness to help!

    Regards,
    Rafal

    Hello,

    It could be due to cache as we are yet to check from our end before your message that it was resolved.

    Meanwhile, we are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Problem with post-sitemap.xml’ is closed to new replies.