Sitemap and redirect problems

#1099378
  • Resolved Precurus Llc
    Rank Math free

    Hello, I recently migrated my site from a staging version that I was rebuilding, and now I am running into several issues with RankMath. I tried quite a few things, including removing the plugin, as well as trying to purge the database.

    1- The sitemap through RankMath fails to be crawled, as something in RM is causing a No: ‘noindex’ detected in ‘X-Robots-Tag’ http header.

    I fought with this for most the day, and ultimetly ended up removing RankMath, and purging the datbase of RM. When I deleted things in the DB, I could not get RankMath to reinstall without a fatal error. So I restored the DB from a backup. After this backup, RankMath only shows a very old version of the sitemap. I have done all the basic how-to steps, turned off cloudflare, purged, and purged some more.

    Right now I have the sitemap disabled, and am using the WordPress sitemap as a work around. Is there anything I can do to fix these two problems?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have also noticed my redirects are not working.

    Hello,

    Thank you for contacting us. We apologize for any inconvenience that may have been caused.

    Please try to follow the steps below and 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 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/

    3. If the above steps don’t seem to work, kindly apply the following filter to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add a filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Once done, clear your website cache and any server-side cache, then check the sitemap.

    Meanwhile, you shouldn’t be worried about the “No: “noindex” detected in the HTTP header “X-Robots-Tag” error, as it’s completely fine and normal to have noindex tag on your sitemap URLs.

    Because, by default, sitemap URLs are set to noindex as it is not meant to be indexed and appear in the search results. The sitemap should only be submitted in the sitemaps section in the Search Console.

    The reason is that we don’t want Google to index the sitemap itself; we only want Google to index the pages and posts that are listed on the sitemap. The sitemap is simply a way to inform Google about the pages and posts on your website, not a page that you want to appear in search results.

    Regarding the redirect, please ensure that you are using an updated version of the Rank Math plugin.

    If the issue persists regarding the error after updating the plugin, you must have received an email from WordPress with the details about the error. Please share it with us here so we can check and assist you further.

    If you haven’t received the email with the error code, you can follow this guide to enable debugging in WordPress https://wordpress.org/support/article/debugging-in-wordpress/, or you can get in touch with your web host, and they will help you locate the log file.

    Having an error log will help us determine what is causing the critical error on your website.

    Looking forward to helping you.

    Thank you.

    Precurus Llc
    Rank Math free

    Thanks for the info, but none of that worked.

    I just did a clean install of wordpress to get a new database going, then migrated my content over. A hassle, but it’s working as it should now.

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Sitemap and redirect problems’ is closed to new replies.