# Submit new sitemaps

- Check 44.19 · Redesign and migration · Critical
- Source: https://checklist-seo-geo.com/en/redesign-migration/submit-new-sitemaps
- Submit to Google and Bing the new site's sitemaps and a temporary sitemap of the old URLs, report the redirects through IndexNow and track the switchover.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/redesign-migration/submit-new-sitemaps.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

When a redesigned or moved site goes live, search engines need two lists: the new site's sitemaps, which list the new URLs to index, and a temporary sitemap of the old URLs, which prompts them to revisit those addresses and discover their redirects. Both are submitted on launch day in Search Console and in Bing Webmaster Tools, then monitored until the new URLs have replaced the old ones in the index. The sitemap of old URLs is then removed.

## Why it matters

Without a signal, Google revisits the old URLs at its usual pace: a page that is rarely crawled can keep its old address in the results for weeks, and the redirect is only discovered at that point. The sitemap speeds up this movement in both directions.

Google documents this for site moves: submit the new sitemap, and during the migration submit both the sitemap of the old URLs and the sitemap of the new ones. Search Console then reports that the old URLs redirect; Google states that this is normal and that these warnings can be ignored. Once Google is using the new sitemap, the old one can be removed.

Bing also reads submitted sitemaps, and takes part in IndexNow, a protocol that lets you notify it directly of URLs that have been added, updated, deleted or redirected. Google does not take part in IndexNow.

## What it improves

- **Speed of the switchover in the index**: the old URLs are revisited sooner, the redirects are taken into account faster, and the new URLs are discovered without waiting for links.
- **Transfer of rankings**: indirect effect, through the speed at which signals pass from one URL to the other.
- **Monitoring**: the Sitemaps report, filtered on each file, shows how indexing of the new URLs is progressing.
- **Generative engines**: indirect. Assistants that rely on the Bing or Google index cite the new URLs sooner when those indexes are up to date.
- **Ranking**: no direct effect. A sitemap helps with discovery and recrawling, not with ranking better.

## How to check

```bash
curl -s https://example.com/robots.txt | grep -i "^sitemap:"
curl -s https://example.com/sitemap.xml | head -n 20
curl -s https://example.com/sitemap.xml | grep -c "<loc>"
```

Expected result: the `Sitemap:` lines point to the new domain, the file is valid XML served with a `200`, and the number of URLs matches the number of indexable pages on the new site.

In the Search Console [Sitemaps report](https://search.google.com/search-console/sitemaps) and in [Sitemaps](https://www.bing.com/webmasters/sitemaps) in Bing Webmaster Tools, every submitted file has the success status, a last read date after the switchover and a consistent number of discovered URLs.

## How to implement

### Before you start

What you need to submit depends on the type of migration:

| Migration | New site's sitemaps | Sitemap of old URLs | Where to submit |
|---|---|---|---|
| Same domain, URLs changed (redesign) | Yes | Yes, on the same domain | The existing property |
| Domain change | Yes | Yes, on the old domain | New property for the new ones, old property for the old ones |
| Move from HTTP to HTTPS or from `www` to non-`www` | Yes, with final URLs | Optional | Domain property, or URL-prefix property of the final version |
| Hosting or CMS change without URL changes | Check that they are identical | No | The existing property |

Before submitting, make sure the new site's sitemaps only contain URLs that return `200`, are indexable and canonical, with no staging address: see [check canonicals, hreflang, sitemaps and robots.txt](https://checklist-seo-geo.com/en/redesign-migration/check-canonicals-hreflang-sitemaps-robotstxt).

### Step 1 — Generate the new site's sitemaps in production

Generate them on the production server, after the switchover, not on staging: a file built beforehand often contains the staging address or old URLs. For a multilingual site, keep one sitemap per language under an index (see [create sitemaps per language](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/create-per-language-sitemaps-if-useful)). Stay within the limit of 50,000 URLs and 50 MB uncompressed per file.

Declare the index in the new site's `robots.txt`:

```txt
Sitemap: https://example.com/sitemap_index.xml
```

### Step 2 — Prepare the sitemap of old URLs

This sitemap lists the old URLs, the ones that now redirect. It is built from the old URL column of the [redirect map](https://checklist-seo-geo.com/en/redesign-migration/create-comprehensive-redirect-map). This dependency-free Python script generates it:

```python
# Usage: python3 sitemap-anciennes-url.py plan.csv 2026-11-25 > sitemap-anciennes-url.xml
# plan.csv: ancienne_url,nouvelle_url, no header row; 50,000 rows at most per file
import csv
import sys
from xml.sax.saxutils import escape

date_bascule = sys.argv[2]

print('<?xml version="1.0" encoding="UTF-8"?>')
print('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">')

with open(sys.argv[1], newline='', encoding='utf-8-sig') as fichier:
    for ligne in csv.reader(fichier):
        if not ligne or not ligne[0].startswith('http'):
            continue

        print(f'  <url><loc>{escape(ligne[0].strip())}</loc><lastmod>{date_bascule}</lastmod></url>')

print('</urlset>')
```

The switchover date in `lastmod` signals that the response of these URLs has changed. Google only uses `lastmod` when it is consistently and verifiably accurate; here the date is real, but no guaranteed effect is documented.

Only include old URLs that had value: indexed pages, pages that received traffic, backlinks or AI citations. There is no point adding URLs that were never indexed.

Where to put the file:

- **Same domain**: at the root of the new site, for example `https://example.com/sitemap-anciennes-url.xml`, without declaring it in the main index.
- **Domain change**: on the old domain, `https://example.net/sitemap-anciennes-url.xml`, excluding this one file from the general redirect (see the Apache and Nginx sections). Failing that, Google accepts a sitemap hosted on another site and submitted through Search Console, provided you have verified ownership of all the sites involved.

### Step 3 — Submit in Search Console

1. Open the [Sitemaps report](https://search.google.com/search-console/sitemaps) of the new site's property, enter the URL of the index or of each sitemap, then click “Submit”.
2. For a redesign on the same domain, also submit `sitemap-anciennes-url.xml` in the same property.
3. For a domain change, open the old domain's property and submit the sitemap of old URLs there.
4. In both properties, remove from the report the old sitemaps that no longer exist, so you can read it without noise. Removing them does not make Google forget anything.

The submission mechanics, including through the API, are covered in [submit sitemaps to Google and Bing](https://checklist-seo-geo.com/en/crawling/submit-sitemaps-google-bing). For a domain change, then use the [Change of Address tool](https://checklist-seo-geo.com/en/redesign-migration/use-google-s-change-address-tool-if-applicable).

### Step 4 — Submit in Bing Webmaster Tools and notify through IndexNow

1. Add the new site to Bing Webmaster Tools if it is not there yet, or import it from Search Console.
2. In [Sitemaps](https://www.bing.com/webmasters/sitemaps), submit the new site's index, then the sitemap of old URLs in the corresponding site.
3. If IndexNow is set up (see [set up IndexNow](https://checklist-seo-geo.com/en/crawling/set-up-indexnow-if-relevant)), send the list of new URLs and the list of old ones: the IndexNow documentation explicitly asks you to submit redirected URLs too, in batches of 10,000 URLs at most.

Example of a bulk submission:

```bash
curl -s -X POST "https://api.indexnow.org/indexnow" \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "host": "example.com",
    "key": "VOTRE_CLE_INDEXNOW",
    "keyLocation": "https://example.com/VOTRE_CLE_INDEXNOW.txt",
    "urlList": [
      "https://example.com/depannage/fuite-eau/",
      "https://example.com/tarifs/"
    ]
  }'
```

An IndexNow submission covers a single host: for the old URLs of another domain, make a separate submission with a key published on that old domain.

### Step 5 — Monitor, then remove the sitemap of old URLs

Every week, open each sitemap in the Sitemaps report, then the link to page indexing:

- **New sitemap**: the share of indexed URLs should go up. The exclusion reasons tell you what to fix.
- **Sitemap of old URLs**: the URLs should move to “Page with redirect”. This status is expected; a URL still “Indexed” after several weeks points to a missing redirect or one that has not been crawled.

Remove the sitemap of old URLs when the vast majority of its URLs show “Page with redirect” and the new sitemap is read without errors: allow anywhere from a few weeks to a few months depending on the size of the site. Remove it from the report, from `robots.txt` if it was listed there, then from the server. Keep the redirects, on the other hand, for at least a year: see [keep redirects for at least a year](https://checklist-seo-geo.com/en/redesign-migration/keep-redirects-at-least-year-ideally-longer).

### Apache

Versions: Apache 2.4.

On the old domain, serve the sitemap of old URLs before the general redirect, in the virtual host or the `.htaccess` file:

```apache
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/sitemap-anciennes-url\.xml$
RewriteRule ^ https://example.com%{REQUEST_URI} [R=301,L]
```

If your redirects are defined URL by URL, put the condition in front of the general fallback rule. Test it: `curl -sI https://example.net/sitemap-anciennes-url.xml` should return `200`, and any other URL `301`.

### Nginx

Versions: Nginx 1.24 and later.

```nginx
server {
    listen 443 ssl;
    server_name example.net www.example.net;
    root /var/www/ancien-domaine;

    location = /sitemap-anciennes-url.xml {
        try_files $uri =404;
    }

    location / {
        return 301 https://example.com$request_uri;
    }
}
```

Add your certificate directives, then run `sudo nginx -t && sudo systemctl reload nginx`. The exact `location =` block takes priority over the other `location` blocks. If your URL-by-URL redirects go through a `map` table evaluated at the `server` block level, check that this path is not in it.

### WordPress

Versions: WordPress 6.4 and later, Yoast SEO and Rank Math, November 2026.

Submit `https://example.com/sitemap_index.xml` with Yoast SEO or Rank Math, `https://example.com/wp-sitemap.xml` without an SEO plugin. After importing the database from staging, clear the SEO plugin's cache and the site cache before submitting: a cached sitemap can contain the old address. The sitemap of old URLs is a static file to upload to the root by FTP or through the host's file manager.

### Shopify

Versions: Shopify admin, all plans, November 2026.

Shopify automatically generates `https://example.com/sitemap.xml` for the primary domain; submit that URL. Shopify does not let you upload an XML file to the root: for a migration to Shopify, host the sitemap of old URLs on the old domain if it remains under your control, or submit only the new sitemap and rely on the redirects.

### Wix

Versions: Wix dashboard, Premium plans with a connected domain, November 2026.

Wix generates `https://example.com/sitemap.xml` for the connected domain. Connect Search Console from Wix's SEO tools, or submit the URL manually. As on Shopify, a custom file at the root is not possible.

### Laravel

Versions: Laravel 11 to 13.

If the sitemap is generated by a scheduled command (for example with the `spatie/laravel-sitemap` package), check that `APP_URL` is set to the production address, then regenerate it immediately after the switchover rather than waiting for the next run:

```bash
php artisan config:cache
php artisan schedule:list
php artisan sitemap:generate
```

`sitemap:generate` is an example name: use the command defined in your project.

### Next.js

Versions: Next.js 15 and 16 (App Router).

`app/sitemap.ts` produces `/sitemap.xml` from the site's data. For a large site, `generateSitemaps` splits the output into several files. The sitemap of old URLs can be a static file in `public/`:

```txt
public/sitemap-anciennes-url.xml  →  https://example.com/sitemap-anciennes-url.xml
```

Check that no `redirects` rule in `next.config.js` captures this path.

## Common mistakes

- **Submitting a sitemap generated on staging**: it contains the staging address or old URLs. Regenerate it in production.
- **Mixing old and new URLs in the same file**: monitoring becomes unreadable. Keep two separate files.
- **Redirecting the sitemap of old URLs**: on a domain change, the general redirect rule also captures this file; Google then never reads the list.
- **Keeping the sitemap of old URLs indefinitely**: once the redirects have been taken into account, it adds nothing and clutters the reports.
- **Panicking at redirect warnings**: on the sitemap of old URLs, they are expected.
- **Forgetting Bing**: Bing Webmaster Tools and IndexNow are separate from Search Console, and the Bing index feeds several AI assistants.

## Frequently asked questions

### Should the old sitemap be submitted after a migration?

Yes, for a few weeks. For a site move, Google advises submitting both a sitemap of the old URLs and a sitemap of the new ones: the old URLs are revisited faster and their redirects discovered sooner. Search Console then reports URLs that redirect, which is normal. Remove this sitemap when most of its URLs show “Page with redirect”.

### How long does it take Google to take the new sitemap into account?

Google usually reads a submitted sitemap within hours or days, but crawling and indexing the URLs it contains take longer, from a few days to several weeks depending on the size and popularity of the site. Track progress in the Search Console Sitemaps report, file by file, using the link to page indexing.

### Where should the sitemap of old URLs be hosted during a domain change?

The simplest option is to put it on the old domain, excluding this one file from the general redirect, then submit it in the old domain's Search Console property. Google also accepts a sitemap hosted on another site, provided you have verified ownership of all the sites involved in Search Console.

### Should IndexNow be used after a redesign?

It is useful for Bing and the other search engines that take part in the protocol, not for Google, which does not use it. The IndexNow documentation asks you to submit added, updated and deleted URLs, and redirected URLs too: so send both the new and the old addresses, in batches of 10,000 at most, with a key published on each domain involved.

## Resources

- [Google Search Central: Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes?hl=en)
- [Google Search Central: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=en)
- [Search Console Help: Sitemaps report](https://support.google.com/webmasters/answer/7451001?hl=en)
- [Sitemaps protocol](https://www.sitemaps.org/protocol.html)
- [IndexNow: documentation](https://www.indexnow.org/documentation)
- [Next.js: sitemap file](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap)

Next steps: [use Google's Change of Address tool if applicable](https://checklist-seo-geo.com/en/redesign-migration/use-google-s-change-address-tool-if-applicable) and [crawl the site after launch](https://checklist-seo-geo.com/en/redesign-migration/crawl-site-after-launch).
