Check 24.09 · Multilingual indexing and sitemaps

Check redirects and old translated URLs

Find each language's old translated URLs, check that they 301-redirect in a single hop to the same language, and fix the server or the CMS.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h to 2 days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A multilingual site changes its URLs more often than a single-language site: a slug translated after the fact, a revised translation, a move from ?lang=de to /de/ or from a subdomain to a folder, a redesign of a single language. Each old translated URL must then redirect permanently, in a single hop, to the new URL in the same language. The task is to rebuild the list of each language's old URLs, test their redirects and fix the discrepancies. Once this is done, no old German URL leads to a French page, the home page or a 404.

Why it matters

For Google, a permanent redirect (301 or 308) is a strong signal: the target becomes the canonical and gradually picks up the old URL's signals, including external links. That only works if the target is the real equivalent of the original page.

Defects specific to multilingual sites:

  • Redirect to the wrong language: the rule is written for the default language and applies to all of them. /de/preise-alt/ ends up at /tarifs/. German-speaking visitors land on a French page, and Google sees a page in a different language replacing the old one.
  • Redirect to the home page: for lack of a match, all of a language's old URLs go to /de/. Google often treats these redirects as soft 404s; the links the pages had earned are lost.
  • Chains: the old slug redirects to the intermediate slug, which redirects to the current slug, then to the version with a trailing slash. Google follows up to ten hops, but each hop slows the visitor down and delays the change being taken into account.
  • Outdated annotations: hreflang, sitemaps and internal links still point to the old URLs. Hreflang annotations to redirected URLs weaken the clusters of alternates.
  • Secondary languages forgotten: the redirect plan is made for the main language, and the other versions end up as 404s.

Generative engines that cite pages and third-party sites that link to you in a given language keep old addresses for a long time. A correct redirect is the only way not to lose those visits.

What it improves

  • Signal transfer External links and history pass to the new URL in the same language.
  • Indexing per language The new URLs replace the old ones faster, without soft 404s.
  • Experience Visitors who come from an old link land on the right page, in their language.
  • Crawling Fewer hops and fewer dead URLs to revisit.
  • Rankings An indirect effect, through keeping the signals. Without a redirect, a page that changes URL starts from scratch.

How to check

Step 1 — Rebuild each language's old URLs

Sources, from the most reliable to the broadest:

  1. the redirect plan from the redesign or migration, if there is one;
  2. old sitemaps for each language, archived or recovered from a backup;
  3. Search Console: in the Performance report, filter on the page with “URLs containing” /de/, maximum period of 16 months, Pages tab, then export;
  4. Page indexing report: the “Page with redirect” reason lists URLs that Google still knows about;
  5. Server logs: 404s per language prefix reveal the old URLs that are still being requested;
  6. Link tool (Ahrefs, Semrush): landing pages of external links, filtered by language folder.

Step 2 — Test the redirects in bulk

Prepare a redirections.csv file in the old_url,expected_new_url format, one line per URL, with no header. Then:

while IFS=, read -r old expected; do
  first=$(curl -s -o /dev/null -w '%{http_code}' "$old")
  read -r final hops code <<< "$(curl -s -o /dev/null -L -w '%{url_effective} %{num_redirects} %{http_code}' "$old")"
  verdict="OK"
  if [ "$first" != "301" ] && [ "$first" != "308" ]; then verdict="CODE"; fi
  if [ "$hops" -gt 1 ]; then verdict="CHAIN"; fi
  if [ "$final" != "$expected" ]; then verdict="TARGET"; fi
  if [ "$code" != "200" ]; then verdict="FINAL-$code"; fi
  printf '%s\t%s\t%s\t%s\t%s\n' "$verdict" "$first" "$hops" "$old" "$final"
done < redirections.csv

Expected result: OK on every line, in other words a first status code of 301 or 308, a single hop, the expected target, and a final status code of 200. The verdict shown is the last problem detected; fix it, then run the script again.

Screaming Frog provides the same check in list mode, with the Always Follow Redirects option and the Reports > Redirects > Redirect Chains report.

Step 3 — Check the language and the annotations

For each target, check that the language prefix is the same as the old URL's. Then look for the old URLs in the hreflang annotations, the sitemaps and the internal links: a crawl that flags internal links to redirects, filtered by language, is enough.

Deliverable: the redirect register per language.

Old URL Language New URL Code Hops Final status Hreflang and sitemap up to date Checked on
/de/preise-alt/ de /de/preise/ 301 1 200 Yes 2026-11-20
/en/pricing-plans/ en /en/pricing/ 301 2 200 No 2026-11-20
/es/precios-antiguos/ es /tarifs/ 301 1 200 No 2026-11-20

Second row: a chain to shorten. Third row: a target in the wrong language.

How to implement

Before you start

Rules that apply everywhere:

  • Same language, equivalent page. An old German URL redirects to the German equivalent. Without an equivalent, a 404 or a 410 is better than a redirect to the home page (see check localized 404 errors (opens in a new tab)).
  • A single hop. When a URL changes a second time, update the old rules so that they point directly to the final target. See fix redirect chains (opens in a new tab).
  • Permanent status code: 301 or 308 (see use 301/308 for permanent moves (opens in a new tab)).
  • Duration: Google advises keeping the redirects from a move for at least a year; keep them longer if external links still point to the old URLs.
  • One mapping file per language, under version control, rather than rules added as you go.

Once set up, replace the old URLs in hreflang, the sitemaps and the internal links.

Apache

Versions Apache 2.4.

For exact matches, use RedirectMatch with an anchored expression. Redirect on its own works by prefix and would also redirect /de/preise-alt/details/, appending the end of the path:

RedirectMatch 301 ^/de/preise-alt/?$ https://example.com/de/preise/
RedirectMatch 301 ^/en/pricing-plans/?$ https://example.com/en/pricing/
RedirectMatch 301 ^/es/precios-antiguos/?$ https://example.com/es/precios/

Structure change, from a ?lang= parameter to folders:

RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)lang=(de|en|es)(&|$)
RewriteRule ^(.*)$ /%2/$1? [R=301,L]

The trailing ? strips the query string. These rules go in the virtual host or in the .htaccess at the root, before the CMS rules. Beyond a few hundred lines, prefer a RewriteMap declared in the virtual host, or the application's redirects table.

Nginx

Versions Nginx 1.18 and later.

One map per file, declared in the http context:

map $uri $redirection_langue {
    include /etc/nginx/redirections/*.map;
}

The /etc/nginx/redirections/de.map file (one file per language):

/de/preise-alt/ /de/preise/;
/de/ueber-uns-alt/ /de/ueber-uns/;

In the server block:

if ($redirection_langue) {
    return 301 https://example.com$redirection_langue;
}

Moving from a language subdomain to a folder, in a dedicated server block:

server {
    listen 443 ssl;
    server_name de.example.com;
    return 301 https://example.com/de$request_uri;
}

Add the certificate directives from your configuration, then run sudo nginx -t && sudo systemctl reload nginx.

Cloudflare

Versions Cloudflare dashboard, Bulk Redirects and redirect rules, all plans, November 2026.

Bulk Redirects handle thousands of mappings without touching the server. Open Bulk Redirects at the account level, create a list (Create Bulk Redirect List), import a CSV file with no header, then create the rule that uses it (Create Bulk Redirect Rule, also accessible from the zone in Rules > Settings, Bulk Redirects tab):

example.com/de/preise-alt/,https://example.com/de/preise/,301
example.com/en/pricing-plans/,https://example.com/en/pricing/,301
example.com/es/precios-antiguos/,https://example.com/es/precios/,301

Columns: source, target, status code (301 by default), then optional settings. The source URL cannot contain a query string. Lists belong to the account: a single file can cover several language domains. For a pattern rule (subdomain to folder), use a redirect rule in Rules > Overview instead.

AWS

Versions CloudFront Functions (JavaScript runtime 2.0) and Application Load Balancer, AWS console, November 2026.

With CloudFront, a CloudFront function associated with the viewer request event responds without querying the origin:

var redirections = {
  '/de/preise-alt/': '/de/preise/',
  '/en/pricing-plans/': '/en/pricing/',
};

function handler(event) {
  var request = event.request;
  var target = redirections[request.uri];

  if (!target) {
    return request;
  }

  return {
    statusCode: 301,
    statusDescription: 'Moved Permanently',
    headers: { location: { value: 'https://example.com' + target } },
  };
}

For long lists, store the mappings in a CloudFront KeyValueStore rather than in the code; the function must then use the JavaScript runtime 2.0 (cloudfront-js-2.0). Behind an Application Load Balancer, listener rules can also return a redirect, but their number is limited: keep them for patterns.

Plesk

Versions Plesk Obsidian 18.0 for Linux.

On Plesk for Linux, paste the block from the Apache section into the .htaccess at the root, or the if and return 301 lines from the Nginx section into Domains > your domain > Hosting & DNS > Apache & nginx Settings (Websites & Domains > your domain in the older view), “Additional nginx directives” field. map tables require server access.

cPanel

Versions cPanel & WHM 110 and later, Jupiter theme.

Domains > Redirects creates one permanent redirect per URL and writes it to the .htaccess. The tool is fine for a few dozen lines; beyond that, edit public_html/.htaccess directly with the block from the Apache section.

WordPress

Versions WordPress 6.8 and later; Redirection 5, Rank Math 1.0, Yoast SEO Premium 28, WPML 4 and 5, Polylang 3.

  • Post slug change: WordPress remembers the old slug and redirects automatically. Do not count on this mechanism for pages, categories or a structure change.
  • WPML and Polylang: each translation is a separate piece of content, with its own slug. Changing the German slug only creates a redirect if a plugin takes care of it.
  • Redirect plugins: the Redirection plugin (permalink change monitoring option), Rank Math's Redirections module or Yoast SEO Premium's redirect manager can record a redirect at each slug change, and most of them import CSV files. Check that the recorded target keeps the language prefix.

After the import, run the script from step 2 on every language.

Shopify

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

When you add a translated URL handle in Translate & Adapt, Shopify redirects the language URL that used the default handle to the new translated handle. However, if you later change a handle that has already been translated, no redirect is created: add it in Content > Menus > View URL redirects. According to Shopify's help, a redirect created there applies to every language or market subfolder; for a specific language, create one redirect per subfolder and test the result under each prefix.

Laravel

Versions Laravel 10 to 13.

For a few URLs, declare them in routes/web.php:

Route::permanentRedirect('/de/preise-alt', '/de/preise');
Route::permanentRedirect('/en/pricing-plans', '/en/pricing');

For a redirects table in the database, only look up the mapping when no route responds, in the rendering of the NotFoundHttpException exception. The lookup costs nothing for existing pages. Keep a locale column in the table to check that no row changes language. Only the location of the code changes from one version to another.

Laravel 11 to 13

In bootstrap/app.php:

use App\Models\LegacyRedirect;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

->withExceptions(function (Exceptions $exceptions): void {
    $exceptions->render(function (NotFoundHttpException $e, Request $request) {
        $target = LegacyRedirect::query()
            ->where('from_path', $request->getPathInfo())
            ->value('to_path');

        if (! $target) {
            return null;
        }

        return redirect($target, 301);
    });
})

When the function returns nothing, Laravel displays its usual 404 page.

Laravel 10

bootstrap/app.php does not handle exceptions yet: register the same rendering in the register() method of app/Exceptions/Handler.php, with renderable:

use App\Models\LegacyRedirect;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

public function register(): void
{
    $this->renderable(function (NotFoundHttpException $e, Request $request) {
        $target = LegacyRedirect::query()
            ->where('from_path', $request->getPathInfo())
            ->value('to_path');

        if (! $target) {
            return null;
        }

        return redirect($target, 301);
    });
}

The use statements go at the top of the file, below namespace App\Exceptions;.

Next.js

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

Declare the mappings in next.config.js (or next.config.ts, created by default by create-next-app: same redirects key). permanent: true produces a 308 status code:

// next.config.js
module.exports = {
  async redirects() {
    return [
      { source: '/de/preise-alt', destination: '/de/preise', permanent: true },
      { source: '/en/pricing-plans', destination: '/en/pricing', permanent: true },
      { source: '/:lang(de|en|es)/blog/:slug/amp', destination: '/:lang/blog/:slug', permanent: true },
    ]
  },
}

With the Pages Router and the i18n option, sources are automatically prefixed with each language: add locale: false to a rule to write the prefix yourself. Beyond a few hundred entries, handle the redirects from a table in proxy.ts: since Next.js 16, this file replaces middleware.ts, which remains the name to use in Next.js 15.

Common mistakes

  • A rule written for the default language and applied to all of them: the other languages' old URLs go to the French version.
  • Redirecting everything to the language's home page: soft 404s and lost links.
  • Forgetting the secondary languages in a redesign's redirect plan.
  • Leaving chains after several successive slug changes.
  • Using Apache's Redirect for a specific URL: the redirect also applies to every path that starts the same way.
  • Keeping the old URLs in hreflang and the sitemaps: Google receives annotations pointing to redirects. See exclude redirects and nonexistent pages (opens in a new tab).
  • Removing redirects too early: external links and citations in a language stay active for years.

Frequently asked questions

Should you redirect the old URLs when you translate slugs?

Yes, every old URL in a language whose slug changes must redirect with a 301 or 308 to the new URL in the same language. Without a redirect, the old address returns a 404, its external links are lost and the new page starts with no history. Also update the hreflang annotations, the sitemaps and the internal links, so that Google no longer comes across the old address.

Can you redirect an old translated page to the French version?

Redirecting an old translated page to the French version is a mistake, unless the language disappears from the site entirely. A visitor following a German link expects a page in German, and Google sees a page in a different language replacing the old one. Redirect to the equivalent in the same language; if there is none, return a localized 404 rather than a redirect.

How long should you keep the redirects for old translated URLs?

Google advises keeping the redirects from a URL change for at least a year. On a multilingual site, keep them longer when third-party sites, directories or articles in a language still point to the old addresses: check in the server logs that they no longer receive visits or crawler requests before removing a rule.

Does Shopify create redirects for translated URLs?

Shopify automatically creates a redirect when you add a translated URL handle in Translate & Adapt: the language URL that used the default handle sends visitors to the translated handle. However, changing a handle that has already been translated creates no redirect. Add it yourself in the URL redirects and test it under each published language prefix.

Updated on

Topic checklist (PDF)

And now?

In the “Multilingual indexing and sitemaps” topic

  1. Use a self-referencing canonical for each actual translation
  2. Do not canonicalize all translations to the main language
  3. Check that each language is indexed independently
  4. Identify duplicates within a language
  5. Handle near-identical regional variants
  6. Check noindex by language
  7. Check untranslated URLs and fallbacks
  8. Check localized 404 errors
  9. Check redirects and old translated URLs
  10. Compare Google-selected canonicals
  11. Create per-language sitemaps if useful
  12. Create a sitemap index
  13. Automate sitemaps
  14. Exclude unpublished or non-indexable translations
  15. Manage lastmod per translation
  16. Submit sitemaps to Google/Bing
  17. Track the indexing rate by language