Showing Sitemap Blank Page

#345331
Viewing 15 replies - 1 through 15 (of 19 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Can you please follow these steps?
    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/

    That should fix the issue. Please let me know if that does not. We are here to assist.

    I have already done this thing but still not generating an XML sitemap.

    Here Rank Math > General Settings > Edit .htaccess code below.

    # 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 A31557600
    ExpiresByType image/x-icon A31557600
    ExpiresByType image/vnd.microsoft.icon A31557600
    ExpiresByType image/svg+xml A31557600

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

    ExpiresByType video/ogg A31557600
    ExpiresByType audio/ogg A31557600
    ExpiresByType video/mp4 A31557600
    ExpiresByType video/webm A31557600

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

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

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

    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # 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]

    ### 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 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:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END LSCACHE
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # 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.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php74” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    # BEGIN cPanel-generated php ini directives, do not edit
    # Manual editing of this file may result in unexpected behavior.
    # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
    # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
    <IfModule php7_module>
    php_flag display_errors Off
    php_value max_execution_time 5000
    php_value max_input_time -1
    php_value max_input_vars 5000
    php_value memory_limit 500M
    php_value post_max_size 500M
    php_value session.gc_maxlifetime 5000
    php_value session.save_path “/var/cpanel/php/sessions/ea-php74”
    php_value upload_max_filesize 500M
    php_flag zlib.output_compression Off
    </IfModule>
    <IfModule lsapi_module>
    php_flag display_errors Off
    php_value max_execution_time 5000
    php_value max_input_time -1
    php_value max_input_vars 5000
    php_value memory_limit 500M
    php_value post_max_size 500M
    php_value session.gc_maxlifetime 5000
    php_value session.save_path “/var/cpanel/php/sessions/ea-php74”
    php_value upload_max_filesize 500M
    php_flag zlib.output_compression Off
    </IfModule>
    # END cPanel-generated php ini directives, do not edit

    Hello,

    I’ve checked your sitemap, and it seems that there’s an empty code in the page’s source code. In this case, please check if you have a static file with the same name as your sitemap file (sitemap_index.xml) in your website’s root directory.

    If so, you should FTP into your server and remove the file as Rank Math’s sitemaps are generated virtually.

    Here’s a link for more information:
    https://rankmath.com/kb/fix-sitemap-issues/#blank-page

    If the issue still 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.

    Thank you.

    I have already done this thing as per your answer but still not showing anything on the sitemap page.

    Please need help, i don’t want to use another plugin

    Prabhat
    Rank Math agency

    Hello,

    I checked and the sitemap is accessible on the URL yourdomain.com?sitemap=1.

    Could you please also share your FTP logins so that we can investigate further?

    Looking forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    Anas
    Rank Math business

    Hello,

    I tried logging in to your FTP account, but I’m getting a connection timed out error.

    Can you please check the FTP credentials?

    We look forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    Unfortunately, we are still having difficulties connecting to your FTP server. Please check the screenshot in the Sensitive Data section. Can you please further verify the situation so we can debug the issue of your sitemap?

    Looking forward to helping you on this one.

    I’ve not received any screenshot from your side and i gave the correct all details of ftp account. It’s already logged in my filzila but you’re still saying to me we’re not connected. May i know what’s the solution now?

    Please go into your filzila setting and put the timeout 0. Also please send me your ip address so i can whitelist your ip.

    I’m still waiting for your response 10 hours, 45 minutes ago

    Azib Yaqoob
    Rank Math business

    Hello,

    I logged into your website’s admin area and upon investigating, I found that your caching plugin “LiteSpeed Cache” is causing the issue and restricting the sitemaps from being loaded.

    The sitemaps are already excluded from being cached but the plugin still seems to be affecting the sitemaps.

    Please get in touch with the support of LiteSpeed cache as they might already have a solution for the issue and they would be in a better position to assist you.

    Let us know how that goes. Looking forward to your update.

    Thank you

    Thanks for your response. I deleted this plugin Litespeed cache but seems same issue. Did you try it ?

    Prabhat
    Rank Math agency

    Hello,

    I was able to login into your FTP using the Core FTP client. Upon investigating, I found that the htaccess file is causing the issue with the sitemaps. I tested with WordPress’s default htaccess and the sitemap loaded without any issues.

    Please check the screencast in the sensitive data section of this ticket.

    To find which specific rule is causing the issue, you can test by removing the rules one by one from the htaccess file.

    Or if everything seems fine, you can also use the default htaccess rules.

    P.S. I’ve removed the default htaccess that I uploaded to the sserver.

    Hope this helps.

    Thank you.

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘Showing Sitemap Blank Page’ is closed to new replies.