How to fix a sitemap that contains noindex or redirected pages
A sitemap should only list pages you want in Google, so remove every URL that carries a noindex tag or redirects elsewhere. Then fix the setting that put it there, so the sitemap stays clean on its own.
Your XML sitemap is a list of pages you are asking Google to index. If some of those pages carry a noindex instruction, or redirect to a different address, the list contradicts itself. Google will not index the noindex pages, and it wastes time visiting the redirected ones. The fix is to make the sitemap match what your site really does.
What the problem looks like
In Google Search Console, open the Pages report (under Indexing). Two messages usually point to this problem:
- "Submitted URL marked 'noindex'": the page is in your sitemap, but it tells Google not to index it.
- "Page with redirect": the address sends visitors to another URL, so Google indexes the destination instead.
You may also see a sitemap that still lists old addresses after a redesign, a move to HTTPS, or a change of URL style. Nothing looks broken to a visitor, which is why this often goes unnoticed for months.
Why it matters
This is not a penalty. Google simply treats your sitemap as a less reliable guide. The practical effects are:
- Pages you do want indexed may be found and refreshed more slowly, because attention is spread across URLs that go nowhere.
- Your reports fill with warnings, which makes real problems harder to spot.
- It is often a sign of a wider setting gone wrong, for example a page hidden by mistake during a redesign, or a staging setting left switched on.
- If a page you care about is in the noindex group, it will never bring you visitors or enquiries until that is fixed.
A good sitemap lists only addresses that return a normal page (status 200), are allowed to be indexed, and are the preferred version of that page.
How to check your site for free
- In Search Console, open Sitemaps and confirm your sitemap was read successfully. Note the address, often
/sitemap.xmlor/sitemap_index.xml. - Open the Pages report and look for "Submitted URL marked 'noindex'" and "Page with redirect". Click each reason to see example URLs.
- Use the URL Inspection tool on one example. It shows whether the page is indexable and which sitemap it came from.
- Open the sitemap in your browser and click a few entries. If the address changes in the browser bar, it redirects.
- For a full check, crawl the sitemap with Screaming Frog SEO Spider (the free version covers up to 500 URLs). Load the sitemap in list mode, then filter by status code (3xx) and by the Indexability column (Non-Indexable).
To see whether a single page has a noindex, view the page source and search for noindex. It can appear as a robots meta tag in the head, or as an X-Robots-Tag header sent by the server, which is invisible in the source. URL Inspection shows both.
How to fix it
The right fix depends on whether the noindex or redirect is intended.
If the page should not be in Google (thank you pages, internal search results, login pages, filtered lists): keep the noindex and remove the URL from the sitemap.
If the page should be in Google: remove the noindex, then keep it in the sitemap. Look for a setting such as "Discourage search engines", "Hide from search results" or a per-page SEO option. Also check for a leftover site-wide noindex from a staging or maintenance period.
If the URL redirects: replace the sitemap entry with the final destination address. Then update internal links, menus and canonical tags so they point to the final URL too. If you suspect canonicals are off, see canonical pointing to the wrong page.
Most sitemaps are generated automatically, so you rarely edit the file by hand. Fix the source instead:
- WordPress: SEO plugins such as Yoast SEO and Rank Math build the sitemap. Pages set to noindex in the plugin are normally left out, so look for a conflict, such as noindex added by a theme, a different plugin, or a custom snippet. Details are in the WordPress guide.
- Shopify: the sitemap is generated for you and cannot be edited directly. Fix the cause: products, pages or collections hidden from search, or a
noindexadded in the theme code. - Other platforms (WooCommerce, Magento, Drupal, Webflow, Next.js): each has its own sitemap setting or module, and the name varies by version. Look for a per-page "exclude from sitemap" option, and for the code or module that adds robots rules.
- Hand-made or custom sitemaps: regenerate the file from your current list of live pages, and remove anything that redirects or is noindexed.
If you also have a noindex problem in the opposite direction, our page on excluded by noindex in Search Console explains how to decide which pages should stay out.
How to confirm the fix worked
- Reload your sitemap in the browser and check that the removed URLs are gone. Caching plugins and CDNs can serve an old copy, so clear the cache if it looks unchanged.
- In Search Console, open Sitemaps and resubmit the sitemap address, or wait for Google to re-read it.
- Back in the Pages report, open the affected reason and click Validate fix. Google rechecks the listed URLs, which can take a few days to a couple of weeks.
- Re-crawl the sitemap with Screaming Frog. Every URL should show status 200 and Indexable.
If a page you wanted indexed is still flagged, inspect it with URL Inspection and use Test live URL to see what Google sees right now, not what it saw last time.
How to stop it coming back
This problem returns when someone changes a setting without thinking about the sitemap. A few habits prevent most of it:
- After a redesign, migration or URL change, crawl the sitemap before and after, and keep redirects and sitemap entries in step.
- Whenever someone sets a page to noindex, make sure the sitemap generator also leaves it out. Test this once with one page.
- Never edit the sitemap by hand on a site that generates it automatically. Your changes will be overwritten.
- Check the Pages report in Search Console each month, even briefly. New noindex or redirect warnings are easiest to fix while they are few.
- Turn off any "discourage search engines" setting the moment a staging site goes live.
SiteMonday covers this in week 41, the Search Console deep dive. It checks the sitemap and index reports and lists any noindex or redirected URLs in the written report, ranked by priority. SiteMonday finds and explains the problem. The change itself is made by you or your developer.
Step by step for your platform
- Sitemap includes noindex or redirected URLs on WordPress
- Sitemap includes noindex or redirected URLs on Shopify
- Sitemap includes noindex or redirected URLs on WooCommerce
- Sitemap includes noindex or redirected URLs on Magento
- Sitemap includes noindex or redirected URLs on Drupal
- Sitemap includes noindex or redirected URLs on Webflow
- Sitemap includes noindex or redirected URLs on Next.js
Questions
Should a sitemap ever contain a noindex page?
No. The sitemap says 'please index these', and noindex says 'please don't', so the two cancel out. Keep the noindex if the page should stay hidden and remove it from the sitemap, or remove the noindex if you want the page found.
Is a redirected URL in my sitemap a big problem?
It is not harmful on its own, since Google follows the redirect. But it wastes crawling and clutters your reports, so replace it with the final destination URL.
Why does my SEO plugin still list pages I set to noindex?
Usually another source is adding the noindex, such as a theme, a second plugin or a server header, or the sitemap is cached. Clear caches, then check the live page with URL Inspection to see where the noindex comes from.
How long does Google take to clear the warning?
After you click Validate fix, Google rechecks the pages, which typically takes a few days to a couple of weeks. The time varies by site.
Can I just delete the sitemap instead?
You can, but it is not a good fix. A clean sitemap helps Google find your important pages, especially on larger or newer sites. See the page on a [missing XML sitemap](/fix/missing-xml-sitemap/) for why.
Do noindex pages hurt the rest of my site?
Having noindex pages is normal and does no harm. The issue is only that they are listed in the sitemap, which sends Google mixed signals.