SEO redirects explained: when to use a 301, 302, 307 or 308, how Google treats each one, how to avoid chains and soft 404s, and how to migrate safely.

In short
a redirect sends users and crawlers from an old URL to a new one. For SEO, use a server-side 301 (or 308) when a page has moved for good, because Google treats a permanent redirect as a signal that the new URL should be indexed. Use a 302 (or 307) only for temporary moves, redirect each old URL to its closest equivalent rather than the home page, avoid chains, and keep redirects in place for at least a year after a migration.
Want to go further? Ask
Every site changes URLs: a product is renamed, a blog is restructured, the whole domain moves to HTTPS or to a new brand. Without SEO redirects, each change leaves behind a dead page, lost backlinks and visitors who land on an error. With the right redirect, Google moves the old URL's signals to the new one and users never notice. Google's documentation on redirects and Google Search sets the rules; this guide turns them into decisions you can apply page by page.
A redirect is an instruction that a URL now lives somewhere else. When a browser or a crawler requests the old address, the server answers with a 3xx status code and a Location header that points to the new address, and the client follows it. For search engines, the redirect also says something about indexing: whether the new URL should replace the old one in the results, or whether the move is temporary.
Redirects are the standard tool for moving a domain, merging duplicate pages, switching from HTTP to HTTPS, changing a URL structure or replacing a removed page with a close equivalent. They work hand in hand with the canonical tag, which names a preferred URL without sending visitors anywhere.
Google sorts redirects into two families. Permanent redirects tell its indexing pipeline that the target should become canonical; temporary redirects do not, so the old URL may stay in the results.
| Redirect | Permanent or temporary | How Google treats it | When to use it |
|---|---|---|---|
| 301 Moved Permanently | Permanent | Signal that the target should be canonical | Default choice for any page that has moved for good |
| 308 Permanent Redirect | Permanent | Same as 301 | Permanent move where forms or API calls must keep their method |
| 302 Found | Temporary | Not a canonical signal; the source may stay indexed | Short promotions, A/B tests, maintenance |
| 303 See Other | Temporary | Not a canonical signal | After a form submission, to show a confirmation page |
| 307 Temporary Redirect | Temporary | Not a canonical signal | Temporary move where the method must not change |
| Meta refresh at 0 seconds | Permanent | Interpreted as a permanent redirect | Only when you cannot configure the server |
| Delayed meta refresh | Temporary | Interpreted as a temporary redirect | Rarely useful; confusing for users |
| JavaScript redirect | Permanent | Seen only if Google renders the page | Last resort when server and meta options are impossible |
Google recommends a permanent server-side redirect whenever possible and says to use JavaScript redirects only when neither a server-side nor a meta refresh redirect is possible, because Google may never see a redirect that depends on rendering. Our guide to JavaScript SEO explains why rendering is not guaranteed.
Ask one question: will the old URL come back? If not, use a 301 redirect. A 302 used for a permanent move is the most common redirect mistake: Google may keep the old URL indexed and show it in results, while the new page waits for signals that never fully arrive. Google does correct some long-standing 302s over time, but you should not count on it.
The 307 and 308 codes exist for a technical reason. According to MDN's guide to HTTP redirections, a 301 or 302 may let browsers change a POST request into a GET, while 307 and 308 keep the method and body unchanged. For ordinary pages this makes no SEO difference; it matters for forms, checkouts and APIs.
Not in a way you need to plan around. Google's Gary Illyes stated in 2016 that 30x redirects no longer lose PageRank. The real losses come from elsewhere: redirecting to an unrelated page, breaking a redirect after a few months, or leaving long chains that slow down crawling.
A chain happens when URL A redirects to B, which redirects to C. Chains build up over years of migrations: HTTP to HTTPS, then www to non-www, then a new URL structure. Google's crawlers follow up to 10 redirect hops, according to its documentation on HTTP status codes, but Google advises redirecting straight to the final destination and, if that is impossible, keeping chains to three hops or fewer. Each hop adds latency for users and wastes crawl budget on large sites.
A loop happens when A redirects to B and B redirects back to A. Browsers show an error, crawlers give up and the page drops out of the index. Loops usually come from conflicting rules, for example a CMS rule and a server rule that disagree on the trailing slash.
Not every removed page needs a redirect. Redirect only when a close equivalent exists. Google's guide to site moves with URL changes warns against redirecting many old URLs to one irrelevant destination such as the home page, which can confuse users and may be treated as a soft 404.
| Situation | Best response | Why |
|---|---|---|
| Page moved to a new URL | 301 to the new URL | Users and signals follow the content |
| Several pages merged into one | 301 from each old page to the merged page | The new page answers the same need |
| Product discontinued, close replacement exists | 301 to the replacement or its category | The visitor still finds what they wanted |
| Content removed, no equivalent | 404 or 410 | An honest error beats an irrelevant page |
| Temporary unavailability | 302 or 307, or keep the page with a notice | The original URL should stay indexed |
| Many old URLs to the home page | Avoid | Likely treated as soft 404s |
Google says that all 4xx errors except 429 are treated the same way, so the choice between 404 and 410 has little practical effect: in both cases a previously indexed URL is removed from the index.
A migration is where redirects make or break traffic. Our complete SEO migration guide covers the full project; for redirects, five rules apply:
The method depends on your stack, but the result must be the same: a single 3xx response from the server.
After each change, test the old URL with a redirect checker: it shows the status code of every hop and the final destination.
Old URLs live on long after you change them. Other sites, newsletters, social posts and AI answers keep pointing to the address that existed when they were written. When ChatGPT, Perplexity or Gemini cite a page and the link leads to an error, you lose the visit and the citation loses its value. A permanent redirect keeps those references working and helps search engines and AI crawlers attach the history of the old page to the new one. Our study of the pages ChatGPT cites shows how much these answers rely on stable, well-established sources.
Redirects are one part of technical SEO that rarely gets attention until traffic drops. A permanent, direct, relevant redirect for every moved URL keeps your rankings and your backlinks working for you. To follow the effect of a migration on clicks, positions and AI citations in one place, use Sorank's GEO and SEO dashboard.
Google recommends keeping redirects as long as possible, and generally for at least one year after a move. Many sites keep them indefinitely, because old backlinks and bookmarks keep sending visitors to the previous URLs for years.
No. A 301 redirect to a relevant page is the recommended way to move content, and Google uses it as a signal that the new URL should be indexed. Problems come from redirect chains, loops and redirects to unrelated pages, not from the redirect itself.
You should not. Google warns that redirecting many old URLs to an irrelevant page such as the home page can confuse users and may be treated as a soft 404. Redirect each page to its closest equivalent, and let pages with no equivalent return a 404 or 410.
THEY TRIED SORANK BEFORE YOU
