aniseo.io
FeaturesFAQBlogPricing
Sign InGet Started Free
Get Started Free
← Back to blog
RankMathΒ·March 22, 2026Β·6 min read

RankMath XML Sitemap: Setup, Configuration, and Google Optimization

Learn how to set up and configure the RankMath XML sitemap so Google indexes all important pages of your WordPress website.

What Is an XML Sitemap and Why Do You Need One?

A RankMath sitemap is an XML file that provides Google and other search engines with a structured overview of all pages on your website. It acts like a roadmap for search engine crawlers, helping them find and index all important content quickly.

Without a sitemap, Google relies on links and crawling to discover new pages β€” this can take days or weeks. A sitemap significantly speeds up the process.

This article is part of our comprehensive RankMath Guide 2026.

Activating the RankMath Sitemap

Basic Activation

  1. Go to RankMath β†’ Dashboard
  2. Make sure the Sitemap module is enabled
  3. Go to RankMath β†’ Sitemap Settings
  4. Enable the XML sitemap

Your sitemap will then be available at: yourdomain.com/sitemap_index.xml

Understanding the Sitemap Structure

RankMath creates a sitemap index that references multiple individual sitemaps:

SitemapURLContent

|---|---|---|

Index/sitemap_index.xmlOverview of all sitemaps
Posts/post-sitemap.xmlAll blog posts
Pages/page-sitemap.xmlAll static pages
Categories/category-sitemap.xmlAll categories
Tags/post_tag-sitemap.xmlAll tags (if enabled)
Products/product-sitemap.xmlWooCommerce products

Configuring the Sitemap

Including and Excluding Content Types

Under RankMath β†’ Sitemap Settings β†’ General, define which content types are included in the sitemap:

Recommended settings:

  • Posts: Enabled
  • Pages: Enabled
  • Categories: Enabled (if filled with content)
  • Tags: Disabled (usually thin content)
  • Media: Disabled
  • Author Archives: Disabled (for single-author blogs)

Excluding Individual Pages

You can exclude individual pages or posts from the sitemap:

  1. Open the post in the editor
  2. RankMath panel β†’ Advanced
  3. Set "Include in Sitemap" to No

Typical exclusions:

  • Legal pages and privacy policies
  • Thank-you pages after form submissions
  • Internal test pages
  • Pages with noindex tags

Enabling the Image Sitemap

The image sitemap helps Google index your images for Google Image Search:

  1. RankMath β†’ Sitemap Settings
  2. Include Images in Sitemap β†’ Enable

Each sitemap entry will then also include the images found on that page.

Max URLs Per Sitemap

By default, RankMath limits the number of URLs per sitemap to 200. For larger websites, you can adjust this value:

  • Small websites (< 100 pages): 200 URLs (default)
  • Medium websites (100–1000 pages): 500 URLs
  • Large websites (> 1000 pages): 1000 URLs

Google can process up to 50,000 URLs per sitemap, but smaller sitemaps load faster.

Submitting the Sitemap to Google

Via Google Search Console

  1. Open Google Search Console
  2. Select your property
  3. Navigate to Sitemaps in the left menu
  4. Enter your sitemap URL: sitemap_index.xml
  5. Click Submit

More on Search Console integration: RankMath and Google Search Console

Via robots.txt

RankMath automatically adds a reference to the sitemap in your robots.txt:

Sitemap: https://yourdomain.com/sitemap_index.xml

Fixing Common Sitemap Problems

Sitemap Not Reachable (404 Error)

Possible causes:

  1. Sitemap module not activated in RankMath
  2. Permalink structure not updated
  3. Conflicts with another plugin

Solution:

  1. Check RankMath β†’ Dashboard β†’ Sitemap module
  2. Settings β†’ Permalinks β†’ Save Changes (without changing anything)
  3. Deactivate other SEO plugins

Google Reports Errors in the Sitemap

ErrorCauseSolution

|---|---|---|

URL not indexablenoindex setRemove noindex or exclude URL from sitemap
404 URLs in sitemapDeleted pagesRegenerate sitemap
Redirect in sitemap301 redirectUse destination URL instead of source URL
Blocked by robots.txtCrawling preventedAdjust robots.txt

Sitemap Not Updating

RankMath automatically updates the sitemap when changes occur. If this is not working:

  1. Clear cache (plugin cache and server cache)
  2. Re-save permalinks
  3. Reset RankMath database under Status & Tools

Advanced Sitemap Optimization

News Sitemap (RankMath Pro)

For news portals, a news sitemap is essential. It is supported in RankMath Pro and contains articles from the last 48 hours.

Video Sitemap (RankMath Pro)

If you regularly embed videos, a video sitemap can increase visibility in Google Video Search.

HTML Sitemap

In addition to the XML sitemap, you can create an HTML sitemap for visitors:

  1. Create a new page
  2. Insert the RankMath HTML Sitemap block
  3. Configure (which content types, sorting)

An HTML sitemap also improves internal linking.

Sitemap Monitoring and Maintenance

Regularly check in Google Search Console:

  • Submitted URLs vs. indexed URLs β€” large discrepancy?
  • Errors and warnings β€” fix quickly
  • Last updated β€” is the sitemap current?

Integrate sitemap checks into your SEO audit process.


AniSEO + RankMath: The Perfect SEO Combination

Combine RankMath with AniSEO for maximum SEO efficiency. AniSEO uses AI to automatically generate optimization suggestions that work perfectly with RankMath.

Try AniSEO for free β†’


Frequently Asked Questions (FAQ)

Do I need to manually submit the sitemap to Google?

It is recommended to submit the sitemap once in Google Search Console. After that, Google detects updates automatically. The robots.txt reference additionally ensures that crawlers find the sitemap.

How many URLs should my sitemap contain?

Only include URLs that should be indexed. Pages with noindex, redirects, and thin content do not belong in the sitemap. Quality over quantity.

Do I need an additional sitemap plugin?

No, RankMath's built-in sitemap functionality is comprehensive and sufficient for most websites. An additional plugin can cause conflicts.

How quickly does Google index new pages after sitemap submission?

It varies. New pages on established domains are often indexed within hours. For new websites, it can take days to weeks. Use the "URL Inspection β†’ Request Indexing" function in Search Console for important pages.

Should I include tags in the sitemap?

In most cases, no. Tags are often thin content pages with little added value. Exclude them to avoid wasting crawl budget. Exception: tags with unique, extensive content.

Hauptartikel zum Thema

RankMath SEO 2026: The Complete Guide for WordPress Users β†’

Put these SEO strategies into action for your WordPress site β€” with AI-powered support from AniSEO.

Try for free now β†’
aniseo.io

AI-powered SEO for WordPress & Websites

Products

  • aniseo.io
  • anicampaign.io
  • anilead.io
  • anipage.io
  • aniavatar.io
  • ultimate-marketing.io

aniseo.io

  • Features
  • Pricing
  • FAQ
  • Blog

Legal

  • Imprint
  • Privacy Policy
  • Terms
Β© 2026 anisuite β€” aniseo.io Β· anicampaign.io Β· anilead.io Β· anipage.io Β· aniavatar.io Β· ultimate-marketing.io