# Sitemap contains non-200 URLs

> Separate redirects, errors, and temporary failures in your sitemap, then publish only final URLs you want Google to consider for Search.

Canonical: https://scaplet.com/seo-issues/sitemap-contains-non-200-urls

Guide SEO issue · Crawlability

Separate redirects, errors, and temporary failures in your sitemap, then publish only final URLs you want Google to consider for Search.

5 min

read

6

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

A sitemap should list the final canonical URLs you want Google to consider for Search. Fetch every listed URL and classify its result: replace redirects with their final destination, remove permanent errors and URLs that should not be indexed, and investigate transient server failures before changing the file. A clean sitemap helps communicate your preferred URL set, but it does not guarantee crawling or indexing.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fsitemap-contains-non-200-urls%20(%22Sitemap%20contains%20non-200%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fsitemap-contains-non-200-urls%20(%22Sitemap%20contains%20non-200%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fsitemap-contains-non-200-urls%20(%22Sitemap%20contains%20non-200%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fsitemap-contains-non-200-urls%20(%22Sitemap%20contains%20non-200%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 5 minutes.

1. [Classify the response before editing the sitemap 01](#classify-the-response-before-editing-the-sitemap)
2. [Compare the sitemap with the pages you intend to publish 02](#compare-the-sitemap-with-the-pages-you-intend-to-publish)
3. [Fix the generator so the URLs stay clean 03](#fix-the-generator-so-the-urls-stay-clean)
4. [Verify the corrected sitemap after deployment 04](#verify-the-corrected-sitemap-after-deployment)

_01_Different status codes need different repairs

## Classify the response before editing the sitemap

Observed response

### `301` or `308` redirect

What it means for the sitemap

The listed URL is not the final destination.

Next action

Replace it with the final [canonical URL](/glossary/canonical-url) if that page should appear in Search.

Observed response

### `302`, `303`, or `307` redirect

What it means for the sitemap

The URL is temporarily routed elsewhere; the target might not be the preferred result.

Next action

Check whether the move is temporary. Keep or replace the sitemap entry based on the page's intended canonical URL.

Observed response

### `404` or `410`

What it means for the sitemap

The resource is missing or intentionally gone.

Next action

Remove it. Add a redirect only when there is a relevant replacement.

Observed response

### `5xx` or timeout

What it means for the sitemap

The server or an upstream dependency failed during the check.

Next action

Check logs, CDN/origin health, and repeat the fetch before pruning a valid page.

Observed response

### `200` with `noindex` or a different canonical

What it means for the sitemap

The response is successful, but the page's indexing signals conflict with the sitemap preference.

Next action

Decide which URL should represent the content, then align the sitemap, canonical, and indexing rule. See [noindex pages in a sitemap](/seo-issues/noindex-page-in-sitemap).

Google's technical requirements say it only indexes pages served with an HTTP `200` [status code](/glossary/http-status-codes), and that meeting them does not guarantee indexing. A sitemap tells Google which URLs you prefer; Google says it helps discovery but doesn't guarantee that every item is crawled and indexed. Google's crawling guide also warns that including URLs in your sitemaps that you don't want to appear in Search can waste your [crawl budget](/glossary/crawl-budget) on pages you don't want indexed. Don't treat every non-200 response as the same error: a transient `503` calls for investigation, while a retired `404` usually calls for removal from the generated URL set.

_02_How it works

## Compare the sitemap with the pages you intend to publish

1. 1

### Fetch the submitted sitemap

Check the [sitemap index](/glossary/xml-sitemap) and every child sitemap. Confirm each file loads successfully and returns parseable XML or text.
2. 2

### Extract and normalize URLs

Use fully qualified absolute URLs. Normalize host, protocol, and [trailing slash](/glossary/trailing-slash) only according to your site's real redirect and canonical rules; do not silently merge paths that serve different pages.
3. 3

### Request each URL and follow the path

Record the initial status, redirect chain, final status, and final URL. Test with and without redirects so a crawler can reveal the first response and a visitor can reveal the destination.
4. 4

### Compare to the intended indexable inventory

Join the response report with your CMS or route list. Remove deleted, redirected, blocked, duplicate, and intentionally `noindex` entries; keep important pages reachable through [internal links](/glossary/internal-links) too.

Inspect one sitemap URL and its redirect destination

```
curl -sSIL --max-redirs 10 'https://www.example.com/category/item'
```

**Catch bad entries before release**Add a sitemap check to deployment: parse the generated files, request each URL, assert the expected host and final `200`, then flag `noindex` and canonical mismatches. For large inventories, sample on every deploy and run a full crawl on a schedule.

_03_Worth knowing

## Fix the generator so the URLs stay clean

### Prefer the final URL in the source data

if a [slug](/glossary/url-slug) or hostname changed, update the sitemap input and internal links rather than relying on redirects forever.

### Filter by publishing state

draft, private, preview, expired, and intentionally excluded pages should not enter the public sitemap.

### Keep canonical signals aligned

the sitemap URL should match the page's intended canonical. See [canonical points to a redirect](/seo-issues/canonical-chain) if those disagree.

### Preserve transient failures for review

a server outage is not evidence that the page was intentionally deleted. Retry and inspect the origin or CDN before removing a live page.

### Do not add routes to force indexing

Google says a sitemap helps search engines discover URLs but doesn't guarantee that all the items in it will be crawled and indexed. Improve the page or fix the technical issue the evidence shows.

For a sitemap near the documented 50,000 URL or 50MB uncompressed limit, split it into child files and use an index. See [sitemap-too-large troubleshooting](/seo-issues/sitemap-too-large) for the limits and verification steps.

_04_How it works

## Verify the corrected sitemap after deployment

1. 01

### Run the same full comparison

Re-fetch the sitemap and all listed pages after deploy. Confirm each retained URL returns `200` at the intended host and path, without redirecting to another canonical.
2. 02

### Submit or resubmit the sitemap

Use [Search Console](/glossary/google-search-console)'s Sitemaps report to check the latest fetch. Success means the sitemap was loaded and processed without errors; Has errors and Couldn't fetch need a fix and a resubmit. None of these statuses says the listed pages are indexed.
3. 03

### Inspect representative URLs

Use URL Inspection for pages still missing from Google. Check the last crawl, crawl access, user-declared canonical, and Google-selected canonical before changing more signals.
4. 04

### Watch the next generated version

Compare URL counts and status distributions across deploys. Alert on new redirects, 4xx/5xx responses, unexpected host changes, and URLs that have `noindex` or point to another canonical.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Google Search technical requirements](https://developers.google.com/search/docs/essentials/technical) developers.google.com · checked 2026-10-24
2. 02 [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) developers.google.com · checked 2026-10-24
3. 03 [Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) developers.google.com · checked 2026-10-24
4. 04 [Learn about sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview) developers.google.com · checked 2026-10-24
5. 05 [Sitemaps report](https://support.google.com/webmasters/answer/7451001?hl=en) support.google.com · checked 2026-10-24
6. 06 [Troubleshoot Google Search crawling errors](https://developers.google.com/search/docs/crawling-indexing/troubleshoot-crawling-errors) developers.google.com · checked 2026-10-24

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ Should a sitemap URL return exactly HTTP 200?

For a page you want considered for Google Search, list its final canonical URL and verify it returns `200`. Redirecting URLs should generally be replaced by the destination; errors should be reviewed based on whether the page is gone or temporarily unavailable.

_02_ Should I remove a URL from the sitemap if it returns 503 once?

Not automatically. A `503` can indicate a temporary server or upstream problem. Check logs and repeat the request; remove the URL only if the page was intentionally retired or should not be indexed.

_03_ Can I leave a redirect URL in my sitemap?

Replace it with the final URL when the move is permanent and the destination is the page you want in Search. During a site move, Google says Search Console may show warnings for the sitemap that contains the old URLs about the URLs redirecting; this is normal and you can ignore those warnings.

_04_ Does a clean sitemap make Google index all its URLs?

No. A sitemap helps Google discover URLs, but Google says it doesn't guarantee that all the items in it will be crawled and indexed.

## Keep learning

[All seo issues](/seo-issues)

[Learn Sitemap not found Crawlability](/seo-issues/sitemap-not-found) [Related lastmod Crawling and indexing](/glossary/lastmod) [Read next XML sitemap too large Crawlability](/seo-issues/sitemap-too-large) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[5xx server errors](/seo-issues/server-errors-5xx)

More in Crawlability
[Infinite URL parameters](/seo-issues/infinite-url-parameters) [Nofollow internal links](/seo-issues/nofollow-internal-links) [Orphan pages](/seo-issues/orphan-pages) [Page blocked by robots.txt](/seo-issues/blocked-by-robots-txt) [Pages too deep in your site structure](/seo-issues/pages-too-deep) [Robots.txt blocks CSS or JavaScript](/seo-issues/robots-txt-blocks-css-js) [robots.txt not found](/seo-issues/robots-txt-not-found) [Sitemap contains non-200 URLs](/seo-issues/sitemap-contains-non-200-urls) [Sitemap not found](/seo-issues/sitemap-not-found) [XML sitemap too large](/seo-issues/sitemap-too-large)

Terms on this page
[Canonical URL](/glossary/canonical-url) [HTTP status codes](/glossary/http-status-codes) [Crawl budget](/glossary/crawl-budget) [XML sitemap](/glossary/xml-sitemap) [Trailing slash in URLs](/glossary/trailing-slash) [Internal links](/glossary/internal-links) [URL slug](/glossary/url-slug) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
