301 redirect
A 301 permanent redirect tells browsers and search engines that a URL has moved permanently to a new location.
A 301 response carries a Location header pointing to the new URL. Browsers follow it; search engines transfer most ranking signal from the old URL to the new one and eventually drop the old URL from the index. Compare to 302 (temporary, less signal transferred), 307/308 (preserve HTTP method, otherwise same semantics as 302/301), and 410 (permanently gone — no replacement).
For migrations: 301 every old URL to its new canonical equivalent. Don't 301 everything to the homepage — Google treats that as a soft 404 and drops the entire migration's accrued authority. Watch for chains (/a → /b → /c): each hop loses a small amount of signal, and Google stops following after roughly 5. Audit chains before launch.
Common pitfalls during cutover: protocol mismatches (http → https redirects loop if both http and https 301 to each other), trailing-slash inconsistency (/page and /page/ both 301-ing to each other), and forgotten subdomains. The server-diff tool compares redirect chains between old and new servers to catch these before they go live.