Empty Sitemap

#404785
  • Resolved bosssubhankar
    Rank Math free

    I tried to add sitemap on google search console, But received this following error.

    itemap can be read, but has errors
    Empty Sitemap
    Your Sitemap does not contain any URLs. Please validate and resubmit your Sitemap.

    Please help to add my sitemap to google search console

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please share the affected website URL so we can check as well?

    Meanwhile, for initial troubleshooting, please follow these steps (if not yet):

    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/

    Then submit your main sitemap index:
    https://rankmath.com/kb/submit-sitemap-to-google/

    Let us know how this goes.

    Thank you.

    All Recommended steps completed but still sitemap has errors.

    sitemap url – https://lockmasterkey.com/?sitemap=1

    Anas
    Rank Math business

    Hello,

    The sitemap is loading fine on ?sitemap=1

    This means that the redirection in the server configuration is not correctly set up and you need to update it with the following: https://rankmath.com/kb/fix-sitemap-issues/#apache-error

    After adding that, the redirection should work correctly and the sitemap will load on the expected URL.

    Don’t hesitate to get in touch if you have any other questions.

    Still getting same error on google search console
    error screenshot attached- https://imgur.com/Jdo6fmG , https://imgur.com/9yYrxKR

    can you please check my .htaccess file is ok or any change required?

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat – [F,L]

    # 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

    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###

    ### marker LOGIN COOKIE start ###
    RewriteRule .? – [E=”Cache-Vary:,wp-postpass_61d40703743fe603a614554d28f990f7″]
    ### marker LOGIN COOKIE end ###

    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    ### marker FAVICON end ###

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} “image/webp” [or]
    RewriteCond %{HTTP_USER_AGENT} “Page Speed”
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
    RewriteCond %1 >13
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###

    ### marker DROPQS start ###
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:fbclid*
    CacheKeyModify -qs:gclid*
    ### marker DROPQS end ###

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A0
    ExpiresByType image/x-icon A0
    ExpiresByType image/vnd.microsoft.icon A0
    ExpiresByType image/svg+xml A0

    ExpiresByType image/jpg A0
    ExpiresByType image/jpeg A0
    ExpiresByType image/png A0
    ExpiresByType image/gif A0
    ExpiresByType image/webp A0

    ExpiresByType video/ogg A0
    ExpiresByType audio/ogg A0
    ExpiresByType video/mp4 A0
    ExpiresByType video/webm A0

    ExpiresByType text/css A0
    ExpiresByType text/javascript A0
    ExpiresByType application/javascript A0
    ExpiresByType application/x-javascript A0

    ExpiresByType application/x-font-ttf A0
    ExpiresByType application/x-font-woff A0
    ExpiresByType application/font-woff A0
    ExpiresByType application/font-woff2 A0
    ExpiresByType application/vnd.ms-fontobject A0
    ExpiresByType font/ttf A0
    ExpiresByType font/otf A0
    ExpiresByType font/woff A0
    ExpiresByType font/woff2 A0

    </IfModule>
    ### marker BROWSER CACHE end ###

    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END NON_LSCACHE

    # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END WordPress” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.

    # END WordPress

    Anas
    Rank Math business

    Hello,

    Please exclude the sitemaps from caching in Cloudflare:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/#cloudflare

    Once done, purge the cache from Cloudflare and your website and resubmit the sitemap.

    Let us know how it goes.

    We are here to assist 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 5 replies - 1 through 5 (of 5 total)

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