SEO for Redirects: Keeping Rankings When URLs Change
A redirect is the instruction that moves an old URL's rankings to its new home. The four codes that matter, how Google reads 301s and 302s, how chains and loops form, and the checks to run before and after any URL change.

Every website changes its URLs eventually. A page gets a better slug, two guides merge into one, a service is retired, or the whole site moves to a new domain. Each change leaves an old address behind, and old addresses do not disappear just because you stopped linking to them. They live on in search results, in bookmarks, in links from other sites, and in your own server logs. A redirect is the instruction that tells a browser or a crawler where the old address now lives. Done well, it carries the old page's rankings and visitors to the new one with almost no loss. Done badly, it sends Google to the wrong page, stacks delay on delay, or quietly drops the traffic the old page had earned. This guide covers the four redirect codes that matter, how Google reads each one, how chains and loops form, and the checks to run before and after any URL change.
What a redirect actually is
A redirect is an HTTP response with a status code in the 3xx range and a Location header that names another URL. The server is saying: this page is not here any more, go there instead. The browser or crawler follows the Location header and requests the new address. If that address redirects again, it follows the next one, until a page answers with a normal 200 response or the chain runs out.
The important part is that the redirect itself carries no content. Google ignores whatever the redirecting URL used to serve and processes only the final target. That is why the choice of code matters so much: the code is the only signal the old URL sends, and it tells Google whether the move is permanent or temporary.
Redirects are a server job, and Google recommends server-side redirects whenever possible. The alternatives — a meta refresh tag or a JavaScript redirect — are slower, less reliable, and sometimes missed entirely by crawlers that do not run scripts. If your platform only offers a redirect feature in its admin panel, use it; that is still a server-side redirect. Reserve JavaScript and meta refresh for the rare cases where no server option exists.
301 vs 302: the choice that decides which URL ranks
The two codes most sites use are 301 Moved Permanently and 302 Found. They look similar — both send the visitor to another page — but Google reads them very differently. A 301 or 308 is a strong signal that the target should be the canonical URL, the version shown in search results. A 302, 303 or 307 is a weak signal: Google follows it, but it does not treat the target as the canonical, so the old URL usually stays in results.
That difference is the whole decision. Use a 301 when a page has moved for good: a renamed URL, two pages merged into one, a switch to https, a move between www and the bare domain, or a new domain entirely. Use a 302 only when the move really is temporary: a page down for maintenance, a short promotion, or sending visitors to a different page while the original is being rebuilt and will come back.
The most common redirect mistake is leaving a 302 in place after a permanent change. It happens easily: a plugin defaults to 302, a hosting panel offers only one option, or someone copies a rule from a temporary test and never changes it. Months later the old URL is still the one showing in search results, and the new page is not accumulating the signals it should. Check the code, not just the destination.
One reassurance that surprises people: a permanent redirect does not throw away the old page's authority. Google has said since 2016 that 301 redirects do not cause a loss in PageRank, and its site-move guidance repeats the point. What a wrong code costs is not authority — it is which URL Google chooses to show.
307 and 308: the method-preserving pair
Two newer codes complete the set. A 308 Permanent Redirect is the strict version of a 301, and a 307 Temporary Redirect is the strict version of a 302. Google treats 308 exactly like 301 and 307 exactly like 302 for indexing purposes, so for ordinary pages the SEO effect is the same.
The difference is what happens to the request itself. A 301 or 302 may turn a POST request into a GET, dropping the form data or payload that came with it. A 307 or 308 keeps the method and the body intact. That only matters when the redirect sits in front of something that receives data — a form handler, a login endpoint, an API. For pages served by GET, which is nearly every page a search engine sees, 301 and 302 are fine.
Browsers cache 301 and 308 responses by default, which is worth remembering before you set one. A permanent redirect you later undo can stay stuck in visitors' browsers, sending them to the old target long after the server stopped redirecting. Test on a temporary code first if you are unsure the destination is final, and only switch it to permanent once you are certain.
Redirect chains: how they grow and why to flatten them
A chain is a redirect that leads to another redirect. The classic one is the address that goes from http to https, then from https to the www version, then from the www version to a new slug — three hops before the page appears. Chains are rarely planned. They grow one rule at a time: the host forces https, the CMS forces www, a plugin forces a trailing slash, and a migration adds a path map.
Google's crawlers follow up to 10 redirect hops by default, so a short chain will still be crawled. That ceiling is not a target. Every hop is another round trip before the page starts loading, so chains slow visitors down and waste crawl budget on addresses that contain no content. Google's site-move guidance asks for a direct redirect to the final destination, and where that is not possible, to keep chains short — no more than three hops and fewer than five.
Flattening a chain means pointing every old URL straight at its final destination. If a page has moved twice, the first address should redirect to the current address, not to the middle one. This is a maintenance job, not a one-off: after every migration, run a crawl of the redirect map and rewrite any entry whose target is itself a redirect.
Loops, dead ends and the homepage trap
A loop is a chain that never ends: page A redirects to page B, and page B redirects back to page A, or a longer circle closes on itself. Browsers and crawlers give up after a set number of hops and report an error, so the page is unreachable for everyone. Loops usually come from two rules that contradict each other — one rule adding www and another removing it, or a trailing-slash rule fighting a redirect map.
A dead end is a redirect whose final target returns a 404. The redirect works, the destination does not. It happens when a target page is deleted after the redirect was written, or when a migration map points at a slug that was renamed again. The fix is the same as for chains: check the final status of every redirect, not just the first hop.
The third trap is the homepage redirect. When a site is rebuilt, it is tempting to point every old URL at the new home page rather than mapping each one to its closest match. Google's guidance warns against this: sending many old URLs to one irrelevant page does not preserve their rankings, because the home page is not a substitute for the content the old page had.
When to redirect, when to leave a 404, and when to restore
Not every deleted page needs a redirect. A page that has no links pointing to it, no traffic, and no close equivalent on the new site can simply return a 404. A 404 is a correct answer: the page is gone. Google removes it from the index in time, and nothing is lost.
Redirect when the old page had value worth carrying forward: incoming links, search traffic, or bookmarks and shares that still send visitors. Redirect to the closest equivalent page — the replacement guide, the new product, the merged article — not to a category page or the home page unless that genuinely is the closest match.
Redirects during a migration or domain change
A migration is where redirect discipline pays for itself. Before the move, crawl the old site and export every URL that returns 200 and every URL with incoming links. Build a map from each old URL to its new address, one row per URL, and have a second person check the rows for the pages that matter most. During the move, put the redirects live at the same moment the new site goes live — a gap of even a few hours is enough for crawlers to record 404s on addresses that should have redirected. After the move, watch the traffic shift from old URLs to new ones, check the server logs for Googlebot still hitting old addresses, and check Search Console's Pages report for URLs recorded as a page with redirect. Keep the redirects in place for as long as possible, and at least a year after a site move, which is Google's stated minimum — old links do not expire on a schedule, and a redirect removed too early turns a working old link into a 404.
How to audit the redirects you already have
Most sites carry redirects they have forgotten about, written years ago for pages nobody remembers. An audit starts with a crawl: run your site crawler or a redirect checker over the full URL list and export every redirect it finds, with each hop, its status code, and its final destination. Then sort the list by problem. Chains longer than two hops go first, then 302s that should be 301s, then redirects ending in 404s, then redirects pointing at other redirects.
A checklist before you change any URL
Run through this list before a slug change, a merge, or a migration. First, write down the old URL, the new URL, and the reason for the change, and keep that record. Second, pick the code: 301 for a permanent move, 302 only for a genuinely temporary one. Third, check the destination returns 200 and is the closest match to the old content. Fourth, test the redirect yourself: request the old URL and confirm one hop, the right code, and the right final page. Fifth, update the internal links and the sitemap so the old URL stops being offered to crawlers. Sixth, after the change, watch Search Console for the old URL moving to a page with redirect and the new URL gathering its impressions.
Redirects are small, invisible, and easy to get wrong in ways that take months to notice. A wrong code, a chain that grew one rule at a time, or a map that points at a deleted page all look fine to a visitor who reaches the right page in the end. They show up later, in rankings that drift to the wrong URL and in traffic that quietly never arrives. Choose the right code, point each old URL straight at its final page, keep the chain short, and check the final status.
This article is educational guidance on SEO and content strategy; search engine behaviour differs by site, niche and implementation, and nothing here guarantees rankings, traffic or indexation outcomes. Check the current guidance in Google Search Central before changing index, canonical or structured-data rules on a live site.
Recommended products
Keep reading
- The SEO Migration Checklist For Domain ChangesDomain migrations quietly kill more organic traffic than any algorithm update. Follow this checklist.
- Indexation Problems: Why Google Won't Index Your Pages and How to Fix Each CauseA page that isn't indexed never appears in search, however good it is. The fix starts with reading the exact status Search Console gives you.
- Link Reclamation: Finding and Fixing Lost BacklinksA lost link is a link you already earned. Getting it back is often cheaper than earning a new one.
Explore the full Zeshly product suite, read more on the Zeshly blog, or head back to the homepage.
Ready to put this into practice?
Spin up Zeshly free for 14 days and ship the playbook above on your own site.