Check 44.08 · Redesign and migration

Keep high-performing URLs if possible

Find the URLs that bring traffic, links and AI citations, then keep them exactly as they are on the new site, whatever the CMS or framework.

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 redesign does not require changing URLs. For every page that brings traffic, external links, conversions or citations in AI answers, the best redirect is the one you do not need: the page keeps exactly the same address on the new site. Once the task is done, the list of high-performing URLs is frozen, the new site serves them with a 200 and no redirect, and only the URLs that genuinely need to change do so.

Why it matters

A URL is the identifier under which Google, Bing, AI assistants, the sites that cite you and your customers' bookmarks know a page. When it changes, even with a perfect 301 redirect, search engines have to discover the redirect, crawl the new address, then transfer their signals. Google warns that rankings fluctuate temporarily during a site move and that recrawling can take weeks, or longer depending on the size of the site.

An unchanged URL avoids that whole cycle: no redirect to crawl, no chain that grows longer at the next redesign, no external link that depends on a server rule to be maintained for years. Generative engines benefit too: a URL cited in an answer or stored in a search index keeps leading to the right content directly.

There are reasons to change a URL (an incomprehensible address, technical identifiers, an inconsistent structure, a change of domain), but they must be weighed against this cost, page by page. Changing URLs “to tidy things up” on pages that work is one of the most frequent causes of drops after a redesign.

What it improves

  • Traffic stability Pages that bring in revenue do not go through a reassessment phase.
  • External links They keep pointing to a page returning 200, without depending on a redirect.
  • AI citations and bookmarks URLs already cited or shared remain valid with no rule to maintain.
  • Migration workload Fewer rows in the redirect map, fewer tests, less risk of chains.
  • Rankings No gain in itself; the effect is to avoid a loss, temporary or lasting.

How to check

Compare the list of high-performing URLs on the old site with the list of URLs on the new site (crawl of staging or CMS export). With two text files of one relative URL per line:

sort -u anciennes-performantes.txt > a.txt
sort -u nouveau-site.txt > b.txt
comm -23 a.txt b.txt > url-qui-changent.txt
wc -l url-qui-changent.txt

url-qui-changent.txt must contain only URLs whose change has been decided and justified. On staging, then check that every kept URL returns 200 without a redirect:

while read -r path; do
  curl -s -o /dev/null -u utilisateur:motdepasse -w "%{http_code} $path\n" "https://preprod.example.com$path"
done < a.txt | grep -v "^200"

No output lines: every kept URL returns 200. Watch out for the trailing slash: /contact and /contact/ are two different URLs.

How to implement

Step 1 — List the high-performing URLs

Start from the exports made before the redesign: Search Console and analytics data (opens in a new tab), backlinks (opens in a new tab), revenue-generating pages (opens in a new tab) and pages cited by AI systems (opens in a new tab). Combine them in a spreadsheet, one row per URL:

URL Clicks, 12 months Referring domains Conversions, 12 months Cited by an AI Keep
/guides/detartrer-chauffe-eau/ 4,200 18 35 Yes Yes
/produits/the-vert-sencha.html 1,900 3 210 No Yes
/index.php?page=mentions 12 0 0 No No

Fictional values. Set a simple, written criterion, for example: a URL is kept if it exceeds a threshold of clicks or conversions, if it has at least one referring domain, or if it is cited by an AI assistant. Adjust the thresholds to the size of the site; what matters is that the rule is the same for every page.

Step 2 — Decide page by page

Situation Decision
Readable URL, content kept Keep the URL as it is, trailing slash and extension included
URL with an extension (.html, .php) or an old structure Keep it if the page performs well: the new CMS can serve the same address (see the environments below)
URL with technical identifiers or parameters (?id=42) Change it, with a 301 redirect, unless the page carries many external links
Change of domain or move to HTTPS A change is unavoidable: at least keep the paths identical
Content merged or deleted See create a comprehensive redirect map (opens in a new tab)

Record the decision and its reason in the spreadsheet. The day someone suggests “cleaning up” the URLs, the record of the decision will avoid reopening the debate.

Tip: if the new site imposes a new structure, first try to reproduce the old one in the routing rather than redirecting. An internal rewrite (the server serves the new content under the old address) is invisible to search engines, unlike a redirect.

Step 3 — Freeze the list in the specifications

Give the developers the file of kept URLs as an acceptance requirement: each one must return 200 on staging, unchanged. The principles of a good URL for new pages are described in create short, stable, descriptive URLs (opens in a new tab).

Apache

Versions Apache 2.4.

To serve an old address from the new application without a redirect, use an internal rewrite (without the R flag) in the virtual host or the .htaccess file, before the CMS rules:

RewriteEngine On
# Old product page /produits/nom.html served by the new route /produit/nom
RewriteRule ^produits/([a-z0-9-]+)\.html$ /produit/$1 [L,PT]

Browsers and crawlers still see /produits/nom.html returning 200. This method suits static files and applications behind a proxy. A PHP application with a front controller (WordPress, Laravel, PrestaShop) reads the original address from REQUEST_URI and ignores the rewrite: declare the old address in its routing instead (see the WordPress and Laravel sections). Then check that the page's canonical tag does declare the old address, otherwise you create a duplicate. Reload with sudo apachectl configtest && sudo systemctl reload apache2.

Nginx

Versions Nginx 1.24 and later.

Internal rewrite with rewrite … last, in the server block:

location ~ ^/produits/[a-z0-9-]+\.html$ {
    rewrite ^/produits/([a-z0-9-]+)\.html$ /produit/$1 last;
}

last restarts processing with the new URI without sending anything back to the client. Same limitation as with Apache: PHP-FPM receives REQUEST_URI with the original address, so a PHP application must know the old route itself. Do not use permanent or redirect, which would produce a redirect. Reload with sudo nginx -t && sudo systemctl reload nginx.

WordPress

Versions WordPress 6.4 and later.

In Settings > Permalinks, choose the structure that reproduces the old one: “Post name” for /%postname%/, or a custom structure such as /%category%/%postname%/ or /%postname%.html. The “Category base” and “Tag base” fields on the same screen let you keep /rubrique/… or /theme/…. With WooCommerce, the “Product permalinks” section sets the base for product pages.

When importing from another CMS, enter the exact slug of each piece of content before launch: the import plugin does not guarantee that it will carry over the old one. After launch, WordPress automatically redirects the old slug of a published post if it changes, but not that of pages or categories.

Shopify

Versions Shopify, all plans, November 2026.

Shopify imposes its prefixes (/products/, /collections/, /pages/, /blogs/nom-du-blog/) and does not allow you to change them. When coming from another CMS, at least keep the last segment: give each product the URL handle that matches the old slug, then redirect the old path to the new address in Content > Menus > URL redirects. If you later change a product's handle, tick the box that creates the redirect.

PrestaShop

Versions PrestaShop 8 and 9.

In Shop Parameters > Traffic & SEO, friendly URLs must be enabled. The section dedicated to routes defines the URL schema for products, categories and CMS pages using keywords ({id}, {rewrite}, {category}): adjust it to reproduce the old form, .html extension included. Then check the “Friendly URL” field in the SEO tab of each imported product page. A route change applies to the whole shop: test it on staging.

Drupal

Versions Drupal 10 and 11.

Readable addresses come from URL aliases (Configuration > Search and metadata > URL aliases, page /admin/config/search/path). With the Pathauto module, define patterns that reproduce the old structure, then import or enter the exact alias of the high-performing content. The Redirect module can create a redirect when an alias changes: leave it enabled for future changes.

Wix

Versions Wix, all plans, November 2026.

Wix lets you change the slug of each page and, in the SEO settings, the URL prefixes of certain page types (blog posts, products). Reuse the old slugs exactly when possible; for the rest, use the URL Redirect Manager in the SEO section.

Webflow

Versions Webflow, paid plans, November 2026.

The slug of each static page is set in its settings, and the prefix of a CMS collection's pages in the collection settings. Reproduce the old path when the content stays the same; otherwise, declare the redirect in Site settings > Publishing > 301 redirects.

Laravel

Versions Laravel 12 and 13.

Declare the old addresses as routes in their own right in routes/web.php, rather than redirecting them:

use App\Http\Controllers\ProductsController;
use Illuminate\Support\Facades\Route;

Route::get('/produits/{slug}.html', [ProductsController::class, 'show'])
    ->where('slug', '[a-z0-9-]+')
    ->name('products.show');

Then generate all links with route('products.show', $product->slug): the form of the URL now depends only on this declaration. After deployment, php artisan route:cache regenerates the route cache.

Next.js

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

Folder-based routing imposes a structure, but rewrites in next.config.js serve content under another address without a redirect:

module.exports = {
  trailingSlash: true,
  async rewrites() {
    return [
      { source: '/actualites/:slug/', destination: '/blog/:slug/' },
    ];
  },
};

trailingSlash must reproduce the old convention (with or without a trailing slash). In this case, also redirect /blog/:slug/ to /actualites/:slug/ and declare the canonical on the old form, so that only one of the two addresses exists in the eyes of search engines.

Common mistakes

  • Changing every URL on principle: the gain in readability almost never makes up for the reassessment phase on pages that were working.
  • Forgetting the trailing slash or the extension: /contact instead of /contact/ is a new URL, which requires a redirect.
  • Changing the case: /Produits/ and /produits/ are two distinct URLs for search engines.
  • Internal rewrite without a consistent canonical: the old and new addresses both return 200 and compete with each other.
  • Keeping the URL but emptying the page: the address survives, but not what made it perform. See preserve strategic content and internal linking (opens in a new tab).
  • Deciding without data: keeping or changing URLs on gut feeling, without each URL's clicks, links and conversions.

Frequently asked questions

Should URLs be changed during a site redesign?

No, a redesign does not require changing URLs. Keep unchanged those that bring traffic, external links, conversions or citations in AI answers. Only change genuinely problematic addresses, such as technical identifiers or parameters, with a 301 redirect to the new URL. Google warns that rankings fluctuate temporarily when a site's URLs change.

Isn't a 301 redirect enough to keep search rankings?

A well-implemented 301 redirect limits the loss, but does not avoid it entirely: search engines have to discover the redirect, crawl the new address and transfer their signals, which takes weeks on a large site. It also has to be maintained for a long time. A URL kept unchanged needs none of these steps: it is the safest solution for pages that perform well.

How do I keep .html URLs after moving to WordPress?

WordPress accepts a custom structure under Settings, then Permalinks, for example /%postname%.html for posts. Pages and categories do not take this extension: for them, use a server-side internal rewrite or a 301 redirect to the new address. Also enter the exact slug of each imported piece of content, because the import does not always carry over the old one.

Can I keep the same URLs when migrating to Shopify?

Rarely exactly, because Shopify imposes its /products/, /collections/, /pages/ and /blogs/ prefixes, with no way to change them. At least keep the last segment by giving each product a URL handle that matches the old slug, then create a redirect from the old path to the new address. Shopify accepts importing redirects from a CSV file, which simplifies large catalogs.

Updated on

Topic checklist (PDF)

And now?

In the “Redesign and migration” topic

  1. Crawl the site before the redesign
  2. Export URLs and metadata
  3. Export Search Console and analytics data
  4. Export backlinks
  5. Identify revenue-generating pages
  6. Identify pages cited by AI systems
  7. Identify strategic pages to preserve
  8. Keep high-performing URLs if possible
  9. Create a comprehensive redirect map
  10. Map old URLs to relevant equivalents
  11. Preserve strategic content and internal links
  12. Preserve structured data, entity identifiers and important anchors
  13. Protect and audit the staging site
  14. Test performance before launch
  15. Test redirects
  16. Check canonicals, hreflang, sitemaps and robots.txt
  17. Remove indexing blocks on the live site
  18. Check tracking
  19. Submit new sitemaps
  20. Use Google's Change of Address tool if applicable
  21. Crawl the site after launch
  22. Monitor critical errors daily
  23. Monitor rankings, traffic and AI citations
  24. Keep redirects for at least a year, ideally longer
  25. Prepare a rollback plan