post-sitemap.xml

#868226
  • Resolved Filippo Aimo
    Rank Math free

    https://facomunica.it/post-sitemap.xml
    Buonasera mi sono accorto che ho pubblicato 210 post ma che la sitemap ne rileva solo 202. Questo sta succedendo dal 1° di settembre 2024. Ho gia verificato il mio file .htaccess e il codice è presente
    # END WP Rocket

    # START of Rank Math Sitemap Rewrite Rules
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END of Rank Math Sitemap Rewrite Rules

    Request URL
    Status codes
    Redirects
    https://facomunica.it/post-sitemap.xml
    200

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

    We apologize for the issue you are facing with your sitemap not reflecting all your published posts. It seems that you have already checked your .htaccess file and confirmed that the Rank Math rewrite rules are present, which is a good step.

    Here are a few things you can check to troubleshoot this issue further:

    1. Custom Canonicals: If you have set custom canonical URLs for any of your posts, those posts will not appear in the sitemap. Ensure that you are using the default canonical settings for your posts.

    2. Sitemap Settings: Go to Rank Math SEO → Sitemap Settings and verify that all post types are set to be included in the sitemap. Make sure that no post types are excluded.

    3. Content Availability: Ensure that the posts you expect to see in the sitemap are published and not in draft or private status.

    4. Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap generation. You can use the Health Check plugin to check for any conflicts.

    5. Flush Permalinks: As a last resort, try flushing your permalinks by going to Settings → Permalinks in your WordPress admin area and clicking “Save Changes” without making any changes. This can sometimes resolve issues with sitemap generation.

    If none of these solutions work, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Hello,

    Please share the post URL/s that are not getting included in your post sitemap.

    Meanwhile, here are the common reasons why a URL is not showing in the sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/

    Looking forward to helping you.

    Filippo Aimo
    Rank Math free

    I have conducted all the checks, but I did not find anything, and the problem persists. As per your instructions, here are the links to the pages.

    Hello,

    Please follow the steps below for initial troubleshooting:

    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/

    If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to your site:

    
    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.

    After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.

    Thanks.

    Filippo Aimo
    Rank Math free

    The link for the sitemap was set to 1000. I have now set it to 201 as per your instructions, and it worked. Thank you.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.