Sitemap shows only 1 URL despite correct Rank Math setup

#1095900
  • Resolved skala
    Rank Math free

    Hello Rank Math Support,

    I am experiencing an issue with my sitemap that I cannot resolve. My site is:

    👉 https://aktivnidetsa.bg

    👉 Sitemap URL: https://aktivnidetsa.bg/sitemap_index.xml

    Problem

    When I open the sitemap, it shows only one URL instead of the expected sitemap indexes (posts, pages, products, categories, etc.).

    My Setup

    WordPress with Rank Math SEO (free version)

    LiteSpeed Cache (enabled)

    Homepage is redirected to a custom page via a small function in functions.php
    (domain root → https://aktivnidetsa.bg/начало-родители-търсачка-активности/)

    What I’ve Tried Already

    Confirmed there is no physical sitemap_index.xml file on the server.

    Flushed and saved permalinks from Settings → Permalinks.

    Checked Rank Math → Sitemap Settings – all post types and taxonomies are enabled.

    Verified that important pages and posts are set to index (not noindex).

    Removed custom canonical settings.

    Checked functions.php and wp-config.php for whitespace or errors (none found).

    Cleared LiteSpeed cache and tested again.

    Despite these steps, the sitemap still only displays a single URL.

    Request

    Could you please advise why Rank Math is only outputting 1 URL in the sitemap and how I can resolve this?

    My suspicion is that the issue may be related to the homepage redirection I applied via functions.php, but I’m not sure how to confirm or fix that. I tried disabling it and it still no difference, but maybe something it has also something to do with the cache.

    Thank you in advance for your help.

    Best regards,
    Miroslav Dzhutev

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

    We apologize for the issue you are facing with your sitemap showing only one URL. Thank you for providing detailed information about your setup and the steps you’ve already taken to troubleshoot the problem.

    Based on your description, here are a few additional steps you can take to resolve the issue:

    1. Check for Plugin Conflicts: Since you are using LiteSpeed Cache, it might be worth temporarily disabling it to see if it affects the sitemap output. Additionally, consider using the Health Check plugin to identify any potential conflicts with other plugins.

    2. Review Sitemap Settings: Double-check your settings in Rank Math → Sitemap Settings to ensure that all relevant post types and taxonomies are indeed enabled. Sometimes, settings may not save correctly.

    3. Flush Permalinks Again: Although you’ve already flushed permalinks, try doing it once more after making any changes to your settings or plugins. Go to Settings → Permalinks and click “Save Changes” again.

    4. Check for Custom Redirects: Since you mentioned a custom redirect in your functions.php, ensure that it is not interfering with how Rank Math generates the sitemap. You might want to comment out that function temporarily to see if it resolves the issue.

    5. Inspect Robots.txt: Ensure that your robots.txt file is not blocking any important URLs from being indexed. You can check this in Rank Math → General Settings → robots.txt.

    6. Sitemap Cache: If you have caching enabled, make sure that the sitemap is excluded from caching. You can refer to our guide on excluding sitemaps from caching.

    If after trying these steps the issue persists, we recommend replying to this ticket with any new findings or changes you’ve made. A human agent from our support team will be able to assist you further and provide more tailored help.

    Thank you for your patience, and we hope to resolve this issue for you soon!

    Hello,

    In this case, please check this guide for some common reasons why a URL is not included in the sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/

    Also, head over to your website files /uploads/rankmath/, and delete any XML files from that path.

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

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

The ticket ‘Sitemap shows only 1 URL despite correct Rank Math setup’ is closed to new replies.