Troubleshooting Indexing and Sitemap Issues with RankMath SEO
🛑 Critical Prerequisite
Before touching Rank Math, you must verify the global WordPress override. If this is checked, no amount of cache clearing will fix the issue.
- Go to WordPress Dashboard → Settings → Reading.
- UNCHECK "Search Engine Visibility" (Discourage search engines from indexing this site).
- Click Save Changes.
Step 1: Flush Rank Math Internal Cache (Database)
Rank Math stores meta data in "transients" (temporary database options) to speed up your site. You must clear these to force it to re-read the fresh settings.
- Navigate to Rank Math SEO → Status & Tools.
- Click on the Database Tools tab.
- Locate and click these two specific buttons:
- Remove Rank Math Transients: (This is the "Meta Cache" clear). It forces Rank Math to forget old cached meta data.
- Flush SEO Analysis Data: Clears the internal SEO score/analysis cache.
Note: You will see a success message for each. The "Remove Transients" step is the most critical for fixing stubborn noindex tags.Step 2: Force Sitemap Regeneration
Rank Math generates sitemaps dynamically, but they are heavily cached. The "Toggle" method is good, but the "Permalink Flush" is the secret weapon to ensure it works.
- Toggle Sitemap:
- Go to Rank Math SEO → Sitemap Settings.
- Switch Sitemap toggle OFF. Click Save Changes.
- Switch Sitemap toggle ON. Click Save Changes.
- Flush Permalinks (Required):
- Go to WordPress Dashboard → Settings → Permalinks.
- Scroll to the bottom and click Save Changes (do not change any settings, just click save).
- Why? This flushes the
.htaccessrewrite rules that serve the sitemap.
Step 3: Nuke External Caches (Mandatory)
Rank Math writes the <meta name="robots"> tag into the HTML. If a caching layer is serving an old HTML file (static cache), Google will still see the old noindex tag even if Rank Math has been fixed.
Perform all that apply:
- Plugin Cache: Clear WP Rocket, W3 Total Cache, Autoptimize, etc.
- Server Cache:
- LiteSpeed: Click the LiteSpeed diamond icon in top bar → "Purge All".
- SiteGround/Kinsta/WPEngine: Use their specific "Purge Cache" button in the admin bar.
- Cloudflare/CDN:
- Log into Cloudflare.
- Go to Caching → Configuration → Purge Everything. (Don't just do "Custom Purge", do "Everything" to be safe).
Step 4: Page-Level Force Refresh
For specific pages that are stuck (e.g., your Homepage or a specific Landing Page), you need to trigger a "save event."
- Open the specific page/post in the WordPress Editor.
- Click Update (even if you made no changes).
- Why this works: The "Update" action forces Rank Math to immediately re-calculate the Canonical URL, OpenGraph tags, and Robots Meta for that specific URL and write it to the database immediately.
Step 5: Verification (Don't Trust Your Eyes)
Browsers cache redirects and meta tags aggressively. Do not check by just refreshing the page.
Option A: View Source (Incognito)
- Open an Incognito/Private window.
- Go to the URL.
- Right-click → View Page Source (Ctrl+U).
- Ctrl+F (Find) for
robots.
- Success:
<meta name="robots" content="index, follow" ... /> - Failure:
<meta name="robots" content="noindex..." />
- Success:
Option B: Google Search Console (Definitive)
- Go to URL Inspection tool.
- Paste the URL and hit Enter.
- Click "TEST LIVE URL" (Top right button).
- Do not look at the "Google Index" tab (that shows old history).
- Look at the "Live Test" tab.
- If the Live Test says "URL is available to Google," you are fixed. Request Indexing immediately.
Updated on: 25/01/2026
Thank you!
