Sitemap

#1078396
  • Resolved Gary Yeadon
    Rank Math free

    Good day
    My sitemap appears to be redirecting to my landing page.
    Search Console has also detected that this, as per above, and HTML sitemap.
    HTML sitemap is not enabled in rankmath plugin.
    My site map as per Rankmath setting is displayed in the Sensitive Data area.
    Please urgently advise.

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

    We apologize for the issue you are facing with your sitemap redirecting to your landing page. This can often happen due to a few common reasons. Here are some steps you can take to troubleshoot and resolve the issue:

    1. Check Sitemap URL: Ensure that you are submitting the correct XML sitemap URL to Google Search Console. The correct URL should be in the format `https://rankmath.com/wp-content/uploads/2022/03/Blank-Sitemap.png.

    2. Plugin Conflicts: There may be a conflict with another plugin or theme that is causing this issue. We recommend using the Health Check plugin to identify any potential conflicts.

    3. Rewrite Rules: If you are using an Apache or Nginx server, ensure that the appropriate rewrite rules are set up in your .htaccess or Nginx configuration file. For Apache, you can add the following rules:

      # 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

      For Nginx, use:

      # START Nginx Rewrites for Rank Math Sitemaps
      rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
      rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
      rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last;
      # END Nginx Rewrites for Rank Math Sitemaps
    4. Caching Issues: If you have a caching plugin enabled, it might be serving a cached version of your sitemap. Try flushing the cache and ensuring that the sitemap is excluded from caching.

    5. Check for Static Files: Ensure there are no static files named sitemap_index.xml on your server that could be conflicting with the dynamic sitemap generated by Rank Math.

    If these steps do not resolve the issue, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and provide more specific guidance.

    Thank you for raising this concern, and we look forward to helping you resolve it!

    Gary Yeadon
    Rank Math free

    PS: I just tested again and now my sitemap opens. Why would this be inconsistent, landing page then sitemap?

    Gary Yeadon
    Rank Math free

    Hi
    I do have AdTribes Product Feed Pro as a plug in that is utilized for product imports and updates which is also utilized to generate a XML to update Google Merchant Center.
    All these used to work fine before host unethical deleted our webserver.
    The site map in Search Console is currently reading and is in success status, same was for yesterday but looking today it had failed again.
    I will monitor, just wanted to check if it is an issue from server deletion that could be something I may be missing.

    Hello,

    Thanks for contacting Rank Math support. We apologize for any inconvenience this might have caused you.

    Please follow the steps below to see if that 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 from caching. 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 don’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, please clear your website cache including server-side cache, and check the sitemap again.

    Let us know how it goes. We look forward to hearing from you.

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

The ticket ‘Sitemap’ is closed to new replies.