What a 301 redirect is for.
Every page on your site has an address. Search engines know it, other sites link to it, clients have it bookmarked. If the address changes without warning, they all land on an error page.
A 301 redirect indicates that the page has moved permanently. Visitors are taken to the right place without noticing. The search engine transfers what it had learned about the old address to the new one.
There is also a temporary redirect, the 302. It is used for a temporary page. For a redesign or a change of structure, you need the 301.
Collect all the old addresses.
The plan is only as good as the starting list. A forgotten address means an error after launch. So you need to cross-check several sources, because none is complete on its own.
A crawler moves through the site from link to link, but it does not see orphan pages. Search Console knows the pages Google has visited. Server logs show what is actually requested, including old URLs you had forgotten.
- A crawl of the current site with a dedicated tool
- The XML sitemap
- Pages known to Search Console
- Pages viewed in the analytics tool
- Addresses that receive links from other sites
- Redirects already in place on the old site
Build the mapping table.
Everything goes into a spreadsheet. One row per old address, with the new one next to it. Start with the pages that bring the most visits and links: those are handled one by one, by hand.
The rule is to redirect to the equivalent page. A product page to the same product page. A deleted page to the closest page by topic, or to its category. Sending everything to the home page amounts to saying the content has disappeared.
When content is removed with no equivalent, a proper, well-designed error page is better than an unrelated redirect. Record in the spreadsheet the decision taken for each line; it will help when you run your checks.
Rules for patterns, individual lines for the rest.
When a whole family of URLs changes in the same way, a single rule is enough. For example, every URL in an old folder moves to a new one. That is easier to maintain than thousands of lines.
Special cases are handled line by line. Watch the order: a general rule placed before a specific line can override it.
There are two traps to avoid. Chains, where one address points to a second, which points to a third: point each old address directly to its final destination. And loops, where two addresses redirect to each other: the page no longer loads at all.
Test, go live, monitor.
Redirects are tested before the switchover, in the staging environment. We run the full list of old addresses through a tool that checks the status code and destination for each one. We also check the variants: with or without www, with or without a trailing slash, over http and https.
On launch day, we run the test again on the live site. We update internal links so they point straight to the new addresses, and we submit the new sitemap to Search Console.
Next, we monitor 404 errors in Search Console and the server logs. Forgotten addresses always turn up. We add to the plan as we go, starting with those that receive visits.
Further reading.
- CMS, redesign & maintenance
- Web agency
- E-commerce
- The online audit: five questions, an instant result, no commitment.
Bonbay. Published 23 October 2026.