Map old URLs to their replacements
Start with the old sitemap and access logs. Match each URL to a page with equivalent content. Plan a 404 or 410 response for pages removed permanently.
Choose the response code
Use 301 when a standard page moves permanently and 302 for a temporary move. Use 307 or 308 when the client needs to preserve the request method and body.
Verify the full path
Check the status, Location and final 200 response for each redirect. Test HTTPS, query parameters, canonical URLs and internal links after the cutover.