# Exclude unpublished or non-indexable translations

- Check 24.14 · Multilingual indexing and sitemaps · Critical
- Source: https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/exclude-unpublished-non-indexable-translations
- Remove draft, noindex, fallback or redirected translations from sitemaps and hreflang links, language by language, on the main CMSs and frameworks.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/exclude-unpublished-non-indexable-translations.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A multilingual sitemap should only list translations that really exist and that you want indexed: published, translated, returning 200, without `noindex`, with a canonical pointing to themselves. Drafts, languages in preparation, fallback pages that show the default language under a foreign URL and redirected translations are excluded, including from the `hreflang` links of the other languages. Once the task is done, every URL in the sitemaps passes these checks, and the filter is applied by the generator, not fixed by hand.

## Why it matters

Google asks you to put in a sitemap only the URLs you want to see in its results, and to choose the canonical URL rather than every URL that leads to the same content. On a multilingual site, the difficulty is that a page’s state is not the same in every language: the French article is published, its German version is being reviewed, its Italian version does not exist but the CMS shows the French text under `/it/`.

Generators get this wrong in several ways:

- **They list every installed language** for each piece of content, as if every page were translated everywhere.
- **They filter the entry but not the alternates**: the draft translation has no entry, but the other languages’ entries still point to it with `hreflang`.
- **They ignore per-language settings**: a `noindex` set on the German version only, a canonical to the original during review.

Each error sends a contradictory signal: “index this URL” in the sitemap, “do not index it” in the page. The consoles report them as anomalies (URLs submitted but excluded by `noindex`, returning 404 or redirected), the indexing rate by language becomes unreadable, and a French fallback page under `/it/` may be indexed as a duplicate. For generative engines, a fallback page indexed under an Italian URL is a source that does not answer in the language of the question.

## What it improves

- **Consistent signals**: the sitemap and the page say the same thing.
- **Readable reports**: the “Submitted URL…” errors disappear; each language’s indexing rate measures real translations.
- **Hreflang**: no more links to pages that return 404, are redirected or are not indexable, which weaken the annotation cluster.
- **Duplicates**: fallback pages are no longer put forward for indexing.
- **Rankings**: no direct effect.

## How to check

**1. Test every URL in a language’s sitemaps.** This script checks the HTTP code, the presence of `noindex` (header or tag) and the canonical:

```bash
#!/usr/bin/env bash
# Usage: ./controle-sitemap.sh https://example.com/sitemap-de.xml
curl -s --compressed "$1" | grep -o "<loc>[^<]*" | sed 's/<loc>//' | while read -r url; do
  headers=$(curl -s -o /tmp/page.html -D - -w "%{http_code}" "$url")
  code=$(printf '%s' "$headers" | tail -n 1)
  robots=$(printf '%s' "$headers" | grep -i "^x-robots-tag" | tr -d '\r')
  meta=$(grep -o -i '<meta[^>]*name="robots"[^>]*>' /tmp/page.html | grep -i -o 'noindex')
  canonical=$(grep -o -i '<link[^>]*rel="canonical"[^>]*>' /tmp/page.html | grep -o 'href="[^"]*"' | cut -d'"' -f2)
  if [ "$code" != "200" ] || [ -n "$meta" ] || printf '%s' "$robots" | grep -qi noindex || [ "$canonical" != "$url" ]; then
    echo "$code | noindex:${meta}${robots} | canonical: $canonical | $url"
  fi
done
```

Expected result: no lines. On a large sitemap, run it on a sample, or use Screaming Frog’s list mode (`Mode > List`, then upload the sitemap) with the HTTP status code, indexability and canonical columns.

**2. Spot fallback pages.** A `/de/` URL whose `<html lang>` is not `de`, or whose main content is in the default language, is a fallback page:

```bash
curl -s https://example.com/de/blog/neuer-artikel/ | grep -o -i '<html[^>]*lang="[^"]*"'
```

See also [check untranslated URLs and fallbacks](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-untranslated-urls-fallbacks).

**3. Read the consoles.** In the [Page indexing report](https://search.google.com/search-console/index), select a language’s sitemap in the filter at the top of the page (the specific sitemap URL): the reasons “Excluded by ‘noindex’ tag”, “Page with redirect”, “Not found (404)” or “Alternate page with proper canonical tag” should not affect any submitted URL.

## How to implement

### Before you start

Define the inclusion rule once and for all, then apply it to both the entries and the alternate links:

| Translation state | Entry in the sitemap | Hreflang link from the other languages |
|---|---|---|
| Published, translated, 200, indexable, self-referencing canonical | Yes | Yes |
| Draft, under review, scheduled | No | No |
| Whole language in preparation | No, no URL in that language | No |
| Fallback page (content in the default language) | No | No |
| Partial translation (only the menu is translated) | No, until it is finished | No |
| Deliberate `noindex` in this language | No | No |
| Canonical to another URL | No | No, point to the canonical |
| Redirected (301, 302) or deleted (404, 410) | No | No |

The most reliable approach is a single “indexable translation” predicate, calculated on the server and used by three components: the sitemap, the `hreflang` annotations in the `<head>` and the language switcher. If all three read the same rule, they cannot contradict each other.

What to do with the fallback pages themselves is a separate question, covered in [plan for missing translations](https://checklist-seo-geo.com/en/international-architecture/plan-missing-translations): do not create the URL, redirect to the existing version or serve it with `noindex`. In every case, they leave the sitemap. The same reasoning applies to partial translations: see [avoid mixed-language pages with partial translations](https://checklist-seo-geo.com/en/international-architecture/avoid-mixed-language-pages-partial-translations).

> **Warning:** removing a translation from the sitemap does not remove it from the index. A translation that was indexed and then unpublished must return 404 or 410 or redirect, and its `hreflang` annotations must disappear from the other languages: see [update annotations when a translation is removed](https://checklist-seo-geo.com/en/hreflang-regional-variants/update-annotations-when-translation-is-removed).

### WordPress

Versions: WordPress 6.8 to 7.1; WPML 4.x, Polylang 3.x, TranslatePress, Weglot, Yoast SEO and Rank Math in their November 2026 versions.

- **WPML**: each translation is a separate post; a draft is not listed by the SEO plugin. The tricky point is the fallback setting for post types and taxonomies in WPML’s settings (the “Translatable – use translation if available or fallback to default language” option): it serves the original content under the secondary language’s URL, and these URLs can end up in the sitemap. For indexable post types, prefer the option that only shows translated items (“only show translated items”), then check the file.
- **Polylang**: an untranslated page has no URL in the other language; only published translations go into the sitemap. Check for translations published by mistake with empty or copied content.
- **TranslatePress and Weglot**: each published language exists for every page, translated or not, since translation happens at display time. An untranslated page therefore appears in the multilingual sitemap with the original text. Exclude untranslated content with the tool’s exclusion settings, or only publish a language once its indexable pages are translated.
- **Per-language `noindex`** with Yoast SEO or Rank Math: these plugins exclude content set to `noindex` from the sitemap. Check that the setting is applied to the translation concerned and not only to the original.

### Shopify

Versions: Shopify admin, all plans, with the Translate & Adapt app, November 2026.

Shopify automatically adds the languages published in `Settings > Languages` to the sitemaps: keep a language unpublished as long as its translations are not ready. Once it is published, every resource exists in that language; those that are not translated show the default language’s content. Shopify does not let you exclude a resource from a single language: the `seo.hidden` metafield removes it from the sitemaps in every language. So translate with the Translate & Adapt app before publishing the language, then track untranslated resources in the app.

### PrestaShop

Versions: PrestaShop 8 and 9, up-to-date Google sitemap module (gsitemap).

The “Google sitemap” module lists the active products, categories and pages in each active language. Some required fields must be filled in for each language, and imports or modules often copy the original text: a “translated” product page may therefore be in French in the German version. Check for empty or copied fields before enabling a language, and disable the language (`International > Localization > Languages`) until this is done.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.7 to 2.4.9.

A store view’s sitemap includes the products enabled and visible in that view, the active categories and the CMS pages assigned to the view. To exclude a product whose translation is not ready, set its visibility to “Not Visible Individually” in the scope of the view concerned (scope switcher at the top of the product page); for a CMS page, remove the view from its store views. Then regenerate the sitemap and check the view’s file. Check the scope of each attribute on your version before making bulk changes.

### Drupal

Versions: Drupal 10.3 and 11, Simple XML Sitemap 4.x.

In the Simple XML Sitemap settings, language section:

- check “Skip non-existent translations”: only the languages into which the entity is translated get a link;
- check the languages in preparation under “Exclude languages”.

An unpublished translation is not accessible to anonymous visitors; check that it does not appear in the generated file. Paths that are not entities, such as the home page, are always generated for each language that is not excluded. Run `drush simple-sitemap:generate` again after the change.

### Wix

Versions: Wix Multilingual, Wix Editor and Wix Studio, November 2026.

When you add a secondary language, Wix Multilingual asks whether it should be visible right away. Choose to keep it hidden until the translation is finished, then make it visible. Once it is visible, untranslated pages show the main language’s content: finish translating the indexable pages before this step.

### Webflow

Versions: Webflow Localization, plans that include localization, November 2026.

Only the languages whose publishing is enabled appear in the automatic sitemap. Keep a language unpublished until it is ready. For CMS items, check in the published sitemap that an item that is untranslated or unpublished in a language does not appear in it, and hide the pages concerned from indexing in their per-language SEO settings if needed.

### Laravel

Versions: Laravel 10 to 13.

Centralize the rule in a scope on the translation model, used by the sitemap, the `<head>` and the language switcher:

```php
<?php

// app/Models/PostTranslation.php
namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

class PostTranslation extends Model
{
    public function scopePublishedAndIndexable(Builder $query): void
    {
        $query
            ->where('status', 'published')
            ->where('published_at', '<=', now())
            ->where('is_fallback', false)
            ->where('noindex', false)
            ->whereNull('canonical_url')
            ->whereNull('redirect_to');
    }
}
```

In the generator, apply the scope twice: to select the language’s entries and to load the alternates (see the code in the [automate sitemaps](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/automate-sitemaps) guide). Add a test that creates a draft translation and checks that it appears neither as a `<loc>` nor as an `href` in the generated XML.

### Next.js

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

Filter in the CMS query, and filter again on the application side, so that the `alternates.languages` list only contains indexable translations:

```ts
type Translation = {
  locale: string
  path: string
  updatedAt: string
  status: 'published' | 'draft'
  noindex: boolean
  isFallback: boolean
}

const isIndexable = (translation: Translation): boolean =>
  translation.status === 'published' && !translation.noindex && !translation.isFallback

// in sitemap():
const translations = page.translations.filter(isIndexable)
```

Then build the entries and the alternates from `translations` only. Reuse `isIndexable` in `generateMetadata()` for the `<head>` annotations.

### Nuxt

Versions: Nuxt 3.x and 4, @nuxtjs/sitemap 7 to 9 (version 9 requires Nuxt 4.6 or later) with @nuxtjs/i18n 9 and 10.

With `@nuxtjs/sitemap`, only mark with `_i18nTransform: true` the URLs translated into every language. For the others, return from your source one entry per existing translation, with `_sitemap` to assign it to the right language, and exclude the sections in preparation with the `exclude` option (patterns such as `/it/**`).

### Astro

Versions: Astro 5 to 7, @astrojs/sitemap 3.

Use the `filter` option of `@astrojs/sitemap`, which receives the full URL of each page:

```js
// astro.config.mjs
import { defineConfig } from 'astro/config'
import sitemap from '@astrojs/sitemap'

const enPreparation = ['/it/']

export default defineConfig({
  site: 'https://example.com',
  integrations: [
    sitemap({
      filter: (page) => !enPreparation.some((prefix) => page.startsWith(`https://example.com${prefix}`)),
    }),
  ],
})
```

The best option is still not to generate fallback pages at build time: no page, no URL in the sitemap.

## Common mistakes

- **Filtering the entries but not the alternate links**: the draft translation disappears from its sitemap but is still referenced with `hreflang` by all the other languages.
- **Enabling a language before the translation is finished**: on Shopify, PrestaShop, Wix or with a display-time translation tool, all its URLs go into the sitemap immediately.
- **Confusing “published” with “indexable”**: a published translation with a canonical to the original or a `noindex` has no place in the sitemap.
- **Removing from the sitemap to deindex**: the page stays in the index as long as it returns 200 without `noindex`.
- **Excluding a language from the sitemap but leaving it in the switcher and the `<head>`**: search engines discover it through the links anyway.
- **Checking only the main language**: anomalies concentrate in the secondary languages, which get less attention.

## Frequently asked questions

### Should a draft translation be in the sitemap?

No. A translation that is a draft, under review or scheduled is not publicly accessible, or should not be: listing it would send search engines to an error or a temporary page. It should not appear in the other languages’ hreflang links either. It enters the sitemap when it is published, which an automatic generator does without any intervention.

### What should you do with untranslated pages that show the default language?

Remove them from the sitemap and from hreflang links: they are fallback pages, not translations. Then decide what happens to them on the site: do not create the URL in the missing language, redirect to the existing version, or serve the page with noindex while it is being translated. Leaving an indexable French page under a German URL creates a duplicate and misleads German-speaking users.

### Is removing a URL from the sitemap enough to deindex it?

No. The sitemap helps discover URLs; it does not order their removal. Google can keep a page indexed as long as it returns 200 without noindex, even if it is absent from every sitemap. To deindex a translation, serve it with noindex, make it return 404 or 410, or redirect it to a relevant version, and remove it from the other languages’ hreflang annotations.

### Can a noindex translation stay in the hreflang cluster?

No, it is better to remove it. Hreflang annotations should link indexable pages: a link to a noindex version designates a page that Google will not show in its results, and the expected reciprocity no longer makes sense. Remove the translation from the hreflang links and the sitemap of every other language, and add it back when it becomes indexable again.

## Resources

- [Google: Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
- [Google: Tell Google about localized versions of your page](https://developers.google.com/search/docs/specialty/international/localized-versions)
- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203?hl=en)
- [Shopify: Finding your store’s sitemap](https://help.shopify.com/en/manual/promoting-marketing/seo/find-site-map)
- [Drupal: Simple XML Sitemap](https://www.drupal.org/project/simple_sitemap)
- [Astro: filter and i18n options of @astrojs/sitemap](https://docs.astro.build/en/guides/integrations-guide/sitemap/)
- [Nuxt: sitemap and i18n](https://nuxtseo.com/docs/sitemap/guides/i18n)

Next steps: [check noindex by language](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/check-noindex-language), [manage lastmod per translation](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/manage-lastmod-per-translation) and [track the indexing rate by language](https://checklist-seo-geo.com/en/multilingual-indexing-sitemaps/track-indexing-rate-language).
