# Keep redirects for at least a year, ideally longer

- Check 44.24 · Redesign and migration · Critical
- Source: https://checklist-seo-geo.com/en/redesign-migration/keep-redirects-at-least-year-ideally-longer
- Keep a migration's redirects for at least a year: versioned file, old domain and certificate kept, monthly test and criteria before removing any rule.
- 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/keep-redirects-at-least-year-ideally-longer.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

The 301 or 308 redirects set up during a redesign or domain change must stay in place for at least a year, and for as long as possible for URLs that still receive visits or links. Maintaining them also means keeping what makes them work: the old domain name, its DNS, its HTTPS certificate and the configuration that holds the rules. Once this task is done, the redirects live in a versioned file, tested every month, with an owner and criteria written down before any removal.

## Why it matters

Google recommends keeping a site move's redirects for as long as possible, generally at least a year, and adds that, from the users' point of view, you can consider keeping them indefinitely. For a domain change declared with Search Console's Change of Address tool, Google's help asks you to keep them for at least 180 days, and longer as long as they receive traffic from Google Search.

The reason is simple: the old URLs do not disappear from the web on migration day. They remain in:

- links from other sites, which will almost never be updated;
- visitors' bookmarks, emails, PDFs, printed documents, QR codes;
- search engine indexes, which take weeks or months to recrawl everything;
- answers already produced by AI assistants and the indexes of their search engines, which can keep citing an old URL.

As long as the redirect works, all this traffic and the benefit of the links reach the right page. The day it disappears, the old URL returns a 404: the visitor gets lost, the external link no longer benefits the site and the assistant links to a dead page.

Redirects rarely disappear by decision: they get lost with a deactivated plugin, a regenerated `.htaccess`, a change of host, a new redesign, a domain that was not renewed or an expired certificate.

## What it improves

- **External links**: the benefit of backlinks pointing to the old URLs keeps flowing to the new pages.
- **Traffic**: visitors coming from bookmarks, emails, documents or third-party sites land on the right page.
- **Indexing**: search engines finish consolidating signals on the new URLs without running into 404s.
- **AI citations**: URLs already cited in answers remain useful. Indirect effect, with no guarantee of citation.

## How to check

**1. Do the redirects still respond?** Replay the redirect map with the script from [daily monitoring of critical errors](https://checklist-seo-geo.com/en/redesign-migration/monitor-critical-errors-daily), or test a sample:

```bash
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://example.com/produits/sencha-bio
```

Expected result: `301 https://example.com/thes/the-vert/sencha-bio/` (or `308`).

**2. Is the old domain still registered and its certificate valid?**

```bash
whois example.org | grep -i -E "expir|renewal"
echo | openssl s_client -connect example.org:443 -servername example.org 2>/dev/null | openssl x509 -noout -enddate
```

The domain's expiry date should be far off with auto-renewal enabled, and the certificate should cover `example.org` and `www.example.org`.

**3. Are the old URLs still being requested?** Over the last 30 days of logs:

```bash
zcat -f /var/log/nginx/access.log* | awk '$9 == 301 {print $7}' | sort | uniq -c | sort -rn | head -30
```

As long as redirected URLs receive visits, crawlers or links, their redirects are useful.

## How to implement

### Before you start

Six rules apply to every environment:

1. **A single reference file**: the list of old URL, new URL, code, creation date, source (2026 redesign, slug change…). Version it in the site's Git repository or in a shared folder, with a named owner.
2. **Keep the old domain**: auto-renewal enabled at the registrar, payment method up to date, expiry alert sent to a generic address and not to a person who may leave.
3. **Keep the old domain's DNS and certificate**: a redirect from `https://example.org` requires a valid certificate for that host. If it expires, the browser shows a security error before even receiving the redirect.
4. **No chains at the next redesign**: when a new URL changes in turn, update all the old rules that pointed to it so they target the final destination directly. See [fix redirect chains](https://checklist-seo-geo.com/en/http-redirects/fix-redirect-chains).
5. **A review date, not a removal date**: schedule a review twelve months after the migration, then every year.
6. **Rules live in the most durable configuration**: web server or CDN rather than a CMS plugin, whenever possible.

Criteria for removing a redirect during the review, at the earliest one year after the migration:

| Status of the old URL | Decision |
|---|---|
| External links pointing to it | Keep indefinitely |
| Visits or crawler hits in the last 6 months | Keep |
| Cited in an AI answer or present in a distributed document (PDF, QR code, campaign) | Keep |
| No links, no visits for more than 6 months, no more impressions in Search Console | Removal possible; the rule is generally cheaper to keep than to study |
| Generic rule (pattern) covering thousands of URLs | Keep: one rule is enough and weighs nothing |

The six-month threshold is a business convention. When in doubt, keep it.

### Test the redirects every month

Schedule the script that replays the redirect map on the first day of each month (`0 7 1 * *` in `crontab -e`) and add a test to the site's continuous integration: any deployment that breaks a redirect must fail. Example of a minimal Bash test, to run after deployment to staging:

```bash
#!/usr/bin/env bash
ECHECS=0

while IFS=, read -r ancienne attendue; do
  obtenue=$(curl -s -o /dev/null -w "%{redirect_url}" "$ancienne")
  if [ "$obtenue" != "$attendue" ]; then
    echo "FAILED $ancienne -> $obtenue (expected $attendue)"
    ECHECS=$((ECHECS + 1))
  fi
done < redirections-critiques.csv

exit $ECHECS
```

Keep in `redirections-critiques.csv` the 100 to 500 old URLs with the most links and traffic, rewritten to the staging host. See [integrate SEO tests into CI/CD](https://checklist-seo-geo.com/en/automation-quality-control/integrate-seo-performance-accessibility-tests-into-ci-cd).

### Apache

Versions: Apache 2.4.

For a long list, put the mappings in a separate file read by `RewriteMap`, in the virtual host configuration (the directive is not allowed in `.htaccess`). File `/etc/apache2/redirections.txt`, one line per URL:

```txt
/produits/sencha-bio /thes/the-vert/sencha-bio/
/blog/infusion-froide /journal/infusion-froide/
```

In the `<VirtualHost *:443>` of `example.com`:

```apache
RewriteEngine On
RewriteMap redirections "txt:/etc/apache2/redirections.txt"
RewriteCond ${redirections:%{REQUEST_URI}|AUCUNE} !=AUCUNE
RewriteRule ^ ${redirections:%{REQUEST_URI}} [R=301,L]
```

Beyond a few thousand lines, convert the file to a DBM table, which is faster: `httxt2dbm -i redirections.txt -o redirections.dbm`, then `RewriteMap redirections "dbm:/etc/apache2/redirections.dbm"`.

For the old domain, keep a dedicated virtual host, with its certificate:

```apache
<VirtualHost *:443>
    ServerName example.org
    ServerAlias www.example.org
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/example.org/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/example.org/privkey.pem
    Redirect permanent / https://example.com/
</VirtualHost>
```

`Redirect permanent /` keeps the path: `https://example.org/contact` goes to `https://example.com/contact`. Keep an equivalent `*:80` host for `http://`. Check that the renewal of the old domain's certificate still appears in `certbot certificates`, then run `sudo apachectl configtest && sudo systemctl reload apache2`.

### Nginx

Versions: Nginx 1.24 and later.

File `/etc/nginx/redirections.map`, versioned with the site:

```nginx
/produits/sencha-bio  /thes/the-vert/sencha-bio/;
/blog/infusion-froide /journal/infusion-froide/;
```

In the `http` context:

```nginx
map_hash_bucket_size 256;
map_hash_max_size 65536;

map $uri $nouvelle_url {
    default "";
    include /etc/nginx/redirections.map;
}
```

In the `server` block of `example.com`, before the other `location` blocks:

```nginx
if ($nouvelle_url) {
    return 301 $nouvelle_url;
}
```

Dedicated block for the old domain:

```nginx
server {
    listen 443 ssl;
    server_name example.org www.example.org;
    ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
    return 301 https://example.com$request_uri;
}
```

Increase `map_hash_max_size` if Nginx asks for it at startup, then run `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

[Bulk Redirects](https://dash.cloudflare.com/?to=/:account/bulk-redirects) are configured at account level and survive changes of host, which makes them a good home for long-lived redirects. Quotas stated by Cloudflare:

| Plan | Bulk Redirect rules | Redirected URLs, across all lists |
|---|---|---|
| Free | 15 | 10,000 |
| Pro | 15 | 25,000 |
| Business | 15 | 50,000 |
| Enterprise | 50 | 1,000,000 by default |

For the old domain, keep its zone active in Cloudflare with a proxied DNS record (orange cloud), otherwise no rule runs. In the [rules overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview) of the `example.org` zone, create a redirect rule: match all incoming requests, dynamic type, expression `concat("https://example.com", http.request.uri.path)`, status code 301, preserve query string ticked. The zone's edge certificate renews automatically as long as the zone stays active.

### AWS

Versions: AWS console, CloudFront and Certificate Manager, November 2026.

- **CloudFront**: store the mappings in a CloudFront KeyValueStore, read by a CloudFront function associated with the `viewer request` event, which responds with `statusCode: 301` and a `location` header. The list can be updated without redeploying the function.
- **Old domain**: keep the distribution or the S3 bucket that redirects it, and its ACM (AWS Certificate Manager) certificate. A DNS-validated certificate associated with CloudFront or a load balancer renews automatically, provided the validation CNAME record stays in the zone: do not delete it during a Route 53 cleanup, and do not disassociate the certificate from the distribution.
- **Application Load Balancer**: “Redirect to URL” listener rules remain valid, but their number per listener is limited; beyond a few dozen, go through CloudFront or the web server.

### Plesk

Versions: Plesk Obsidian 18.0.

Keep the old domain as a site or alias in `Websites & Domains`, with its Let's Encrypt certificate renewed automatically (SSL It! extension). Put the rules in `Apache & nginx Settings > Additional nginx directives` or in the `.htaccess` file.

### cPanel

Versions: cPanel, Jupiter theme, November 2026.

`Domains > Redirects` section: choose the domain, the “Permanent (301)” type and the target address; cPanel writes the rule to the domain's `.htaccess`. For the old domain, add it as a domain (formerly a parked domain or alias) so that AutoSSL keeps issuing its certificate. Back up the `.htaccess` with the reference file: reinstalling the CMS can overwrite it.

### Shared hosting

Put the rules in the `.htaccess` file at the root, in a commented, dated block, above the rules generated by the CMS. Keep the old domain attached to the hosting account, with the host's free certificate enabled, and copy the `.htaccess` into the reference file after every change.

### WordPress

Versions: WordPress 6.4 and later.

The Redirection plugin, like the redirect managers of Yoast SEO Premium and Rank Math, stores its rules in the database. They disappear if the plugin is deactivated or if WordPress is replaced by another CMS. Two precautions:

- **Export regularly**: Redirection exports its rules in Apache (`.htaccess`) or Nginx format, ready to be carried over into the server configuration.
- **For a fixed list**, move the redesign's rules into the server configuration, and keep the plugin for day-to-day changes.

### Shopify

Versions: Shopify admin, all plans, November 2026.

Redirects are managed in `Content > Menus > View URL redirects`, with CSV import and export. Shopify allows up to 100,000 redirects per store, 20 million on Shopify Plus. A redirect only applies if the old URL no longer matches any page: republishing an old page or collection cancels it without warning. Export the list every quarter. For an old domain, connect it to the store in `Settings > Domains` and let it redirect to the primary domain.

### Laravel

Versions: Laravel 11 to 13.

For a few rules, `Route::permanentRedirect('/produits/sencha-bio', '/thes/the-vert/sencha-bio/');` in `routes/web.php` returns a 301. For a list, a `config/redirections.php` file and a global middleware:

```php
<?php

// config/redirections.php
return [
    '/produits/sencha-bio' => '/thes/the-vert/sencha-bio/',
    '/blog/infusion-froide' => '/journal/infusion-froide/',
];
```

```php
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

class RedirectLegacyUrls
{
    public function handle(Request $request, Closure $next): Response
    {
        $destination = config('redirections', [])[$request->getPathInfo()] ?? null;

        if ($destination === null) {
            return $next($request);
        }

        return redirect($destination, 301);
    }
}
```

In `bootstrap/app.php`: `->withMiddleware(function (Middleware $middleware): void { $middleware->prepend(RedirectLegacyUrls::class); })`. Run `php artisan config:cache` after every change to the file.

### Next.js

Versions: Next.js 15 and 16.

The `redirects()` rules in `next.config.js` are part of the code and follow every deployment. `permanent: true` returns a 308, which Google accepts as a permanent redirect. Keep the list in a JSON file imported by `next.config.js` rather than hard-coded in the configuration. The Next.js documentation points out that platforms may limit their number (1,024 redirects on Vercel) and suggests, beyond a thousand or so, handling them in the Proxy (`proxy.ts`, formerly Middleware) from a mapping table stored in a JSON file or a key-value store.

### Netlify

Versions: Netlify, all plans, November 2026.

Put the `_redirects` file in the publish directory; it is deployed with every version of the site:

```txt
/produits/sencha-bio   /thes/the-vert/sencha-bio/   301
/blog/*                /journal/:splat              301
```

## Common mistakes

- **Letting the old domain expire**: it can be bought by a third party, who then picks up your links and sometimes your traffic.
- **Forgetting the old domain's certificate**: HTTPS redirects fail with a security error, even though the rule is intact.
- **Removing the redirects after a few months** to “lighten” the configuration: the gain is nil, the loss of links is real.
- **Keeping the rules only in a plugin** that gets deactivated during the next redesign.
- **Starting from scratch at the next redesign**: the URLs from two generations back end up as 404s or go through chains.
- **Deleting the ACM validation CNAME** or the old domain's Cloudflare zone during a cleanup.

## Frequently asked questions

### How long should 301 redirects be kept after a migration?

Keep a migration's 301 redirects for at least a year, and ideally with no time limit for URLs that receive links or visits. Google recommends keeping them for as long as possible, generally at least a year, and suggests keeping them indefinitely from the users' point of view. After a change of address declared in Search Console, Google's help asks for a minimum of 180 days.

### What happens if the redirects are removed after a year?

If you remove the redirects after a year, the old URLs return a 404 error. Visitors coming from bookmarks, emails or external links land on an error page, and those links stop benefiting the new pages. Google has generally finished processing the move, but links from other sites will almost never be updated: only remove the rules that no longer receive visits or links.

### Should the old domain name be kept after a migration?

Yes, keep the old domain name after a migration, with auto-renewal, active DNS and a valid HTTPS certificate. Without the domain, no redirect can work; without a certificate, browsers show an error before even receiving the redirect. An abandoned domain can also be bought by a third party, who then picks up the external links and part of your old site's traffic.

### Do redirects slow the site down?

No, thousands of redirects do not slow a site down when they are implemented properly. An Nginx mapping table (map), an Apache RewriteMap in DBM format or Cloudflare Bulk Redirects respond in near-constant time. What costs is hundreds of regular expression rules evaluated one by one in a .htaccess file, or redirect chains: group the rules in a table and always target the final destination.

## Resources

- [Google Search Central: Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes?hl=en)
- [Search Console Help: Change of Address tool](https://support.google.com/webmasters/answer/9370220?hl=en)
- [Google Search Central: Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects?hl=en)
- [Apache: RewriteMap](https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html)
- [Nginx: map module](https://nginx.org/en/docs/http/ngx_http_map_module.html)
- [Cloudflare: Bulk Redirects](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/)
- [AWS: Managed certificate renewal in ACM](https://docs.aws.amazon.com/acm/latest/userguide/managed-renewal.html)
- [Shopify Help: URL redirects](https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect)
- [Next.js: redirects](https://nextjs.org/docs/app/api-reference/config/next-config-js/redirects)

Next steps: [prepare a rollback plan](https://checklist-seo-geo.com/en/redesign-migration/prepare-rollback-plan) and [use 301/308 for permanent moves](https://checklist-seo-geo.com/en/http-redirects/use-301-308-permanent-moves).
