What is the difference between 301, 302, 307 and 308 redirects?
A company launches its new website on Friday afternoon. On Monday morning, it checks the analytics and finds organic traffic has halved. The design is nicer, the copy is better, the website is faster. And still, traffic has dropped.
The reason is almost always the same. The page addresses changed and nobody set up redirects. Google and people alike follow the old links and land on an empty page with a 404 error.
Yet redirects are a trivial thing. A line in the server configuration, a few clicks in the admin. The catch is that there are several types, and each does something slightly different. Pick the wrong one and you either lose your search rankings or your forms stop working, and that second part often gets forgotten entirely.
The whole difference fits into one table
Whichever two types of redirect you are choosing between, it always comes down to two questions.
Is the move permanent or only temporary? And will what the user submitted in a form survive the trip?
Combine the two and you get exactly four options:
| Submitted data may be lost | Submitted data is preserved | |
|---|---|---|
| Permanent | 301 Moved Permanently | 308 Permanent Redirect |
| Temporary | 302 Found | 307 Temporary Redirect |
The pairs 301 and 308 mean the same thing to a search engine and differ only in how they treat submitted data. The same goes for 302 and 307. Remember this matrix and you’re all set.
Right at the start, it’s worth debunking one widespread belief: submitted data can get lost with a 301 too. The official HTTP specification, i.e. the rules by which a browser and a server talk to each other, describes this behavior in exactly the same way for 301 and 302. So in this respect, a permanent redirect is no safer than a temporary one.
Let’s go through all four types one by one.
301: the content is moving for good
A 301 tells browsers and search engines that the page has a new address and the old one won’t come back. It’s the most widely used type of redirect and, in the vast majority of situations on the web, the right one.
Reach for it when you are:
- changing the structure of your website or the address of a single page
- moving your website to a new domain
- switching from HTTP to HTTPS, because adding a single letter changed the address of every page
- merging two similar pages into one
- unifying the www and non-www versions
Watch out for one trap. Browsers remember a permanent redirect and next time go straight to the new address without asking the server. So if you set up a 301 by mistake, you can’t easily take it back for visitors whose browsers have cached it.
Google treats a 301 as a strong signal that the new address should be the main one, and gradually replaces the old URL with it in the search results. In SEO terms, you may lose some rankings for a short while, but if the page is good, it will win them back.
302: the content is elsewhere, but only for a while
A 302 means the content is temporarily somewhere else, but the original address remains the main one. Next time, the browser should ask for it again.
It’s useful when:
- a page is under maintenance and you send people to an information page
- you are testing two versions of a page against each other
- a short-term campaign temporarily replaces your regular landing page
- you are temporarily sending visitors elsewhere based on their language or country
And here is the trap with forms. When someone submits an order or an enquiry and the request passes through a 302, the data they entered may disappear, because the browser doesn’t have to pass it on.
A newer variant was created for exactly this case.
307: temporary, but the data survives
From a search engine’s point of view, a 307 does exactly the same as a 302. There is just one difference, but it’s a crucial one: the browser must not throw away the submitted data. Whatever the user filled in reaches the new address too.
In the specification, this isn’t a recommendation but a rule. The browser has no choice.
When to use it: anywhere something gets submitted: order forms, logins, enquiries, payment gateways. If you run an e-shop or a web application, 307 is the temporary redirect to reach for first.
308: a permanent redirect that doesn’t drop data
308 is to 301 exactly what 307 is to 302: a permanent move in which the submitted data survives.
Google’s documentation lists 301 and 308 side by side as equivalent permanent redirects. In SEO terms, there is no difference between them.
The only caveat is age. 308 only appeared in 2014, so not every older system may recognize it. For an ordinary website and up-to-date browsers, that’s not a problem.
When to use it: for a permanent move of an address that data gets submitted to. For ordinary web pages, feel free to stick with 301; it’s more widespread and behaves the same way.
The link juice myth that has outlived its time
The most common rule of thumb about redirects goes roughly like this: a 301 passes link juice, i.e. the strength of your links, to the new address, while a 302 leaves it with the original one. Sometimes you even see a specific number, such as 90 to 99% of the value being passed on.
This used to be true. Today it isn’t, for two reasons.
First, redirects no longer lose value. Until 2016, people really did count on a loss of around 15%. Then Google confirmed that redirects no longer dilute anything, and percentages of lost link juice stopped making sense.
Second, and more importantly, Google looks at the whole thing differently. It doesn’t care how much strength flows through; it cares which address it should treat as the main one (the canonical) and show in the search results.
So the difference between a permanent and a temporary redirect lies above all in that decision. With a permanent redirect, Google records the new address as the main one; with a temporary one, it sticks with the original. And even with a temporary redirect, Googlebot reaches the new page and may index it.
That leads to a reassuring conclusion. A 302 isn’t a hole your SEO leaks through. It’s simply an instruction to “keep the original address in the index”. But if you use it for a permanent move, you are telling Google something untrue in the long run, and sooner or later it will make up its own mind anyway.
Why the old address shows up in the results even after a correct redirect
This scares everyone moving a website for the first time. The redirect is set up correctly, the new address is in the index, and yet Google still sometimes shows the old one.
It’s not a mistake. Google remembers both addresses. One becomes the main one, and the other stays on as an alternative name. That name may appear in the results when the query suggests the user is more familiar with the old one. As people get used to the new domain, it fades away on its own.
When to use which type
The decision comes down to two questions:
- Will the content return to its original address? If not, it’s a permanent move and you want a 301 or 308. If it will, you want a 302 or 307.
- Is form data submitted to that address? If so, choose the variant that preserves the data: 308 for permanent, 307 for temporary. If not, the classic 301 or 302 is enough.
And one more tip you’ll hear from anyone who has ever migrated a website: if you’re not sure whether the move is permanent, start with a temporary redirect. You can switch from 302 to 301 at any time. Going back from a permanent redirect that browsers have remembered is much harder.
How to set up a redirect
You have three options, depending on how deep into your website you want to go.
1. In the admin, without programming
The simplest route, and entirely sufficient for most companies.
WordPress can’t manage redirects on its own, but a plugin can. The most popular one is Redirection, which can also bulk-import redirects from a spreadsheet and reports which addresses visitors hit a 404 error on. The SEO plugin Rank Math can handle redirects too.
Shoptet, Upgates, Wix and other off-the-shelf platforms let you manage addresses directly in the admin, usually in the URL settings.
2. On the server, through a developer
The fastest and most reliable option, because the redirect happens before the CMS even starts. It does, however, require access to the server configuration.
If you have a developer, this is what you send them. On an Apache server, it goes into the .htaccess file:
Redirect 301 /old-page https://www.example.com/new-pageTo redirect non-www addresses to the www version and force HTTPS at the same time:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]You set a different redirect type by changing the number, i.e. [R=308,L] or [R=307,L]. On an Nginx server, the same thing looks like this:
location = /old-page {
return 301 https://www.example.com/new-page;
}3. Redirects inside the page
There are two more methods you may come across, but we don’t recommend either as your first choice:
- Meta refresh is a tag placed directly in the page. An interesting fact worth knowing: if it redirects instantly, Google treats it as a permanent redirect. If there is any delay, Google treats it as temporary.
- JavaScript redirects work, but they are the least reliable. Google only notices them after rendering the page, which doesn’t always happen.
Google’s documentation ranks reliability exactly like this: server-side redirects first, then meta refresh, and JavaScript last.
How to check that a redirect works
Loading the old address in your browser isn’t enough. You won’t see which type of redirect the server returned or how many redirects happened along the way.
- A browser extension. The easiest option for non-developers. Redirect Path shows the whole path and the redirect type in one click.
- Chrome developer tools. Open them with F12, switch to the Network tab and tick “Preserve log”. You’ll see the redirect code in the Status column.
- The whole website at once. Screaming Frog or Ahrefs crawl all your pages and find chains, loops and links pointing to redirects.
- Google Search Console. In the indexing report, watch the old address disappear and the new one appear. After a migration, don’t forget to submit your updated sitemap.
Five mistakes that cost you traffic
- Redirect chains. Address A leads to B, B to C, and only C to the destination. Every link in the chain adds delay and needlessly eats into your crawl budget, the attention Google gives your website. Always redirect straight to the final address.
- Loops. A leads to B and B back to A. The browser goes round in circles and the visitor sees nothing. Longer loops through three or more addresses are especially sneaky.
- Everything to the home page. If a page has no matching replacement after a redesign, the right answer is a 404 error page, not a redirect to the home page. Google sees through it, and it only annoys visitors.
- Unfixed links on your own website. Redirects are there to catch other people’s links and bookmarks. Update the links in your own content and sitemap to the new addresses directly.
- Removing redirects after a few months. Google recommends keeping permanent redirects running for at least a year, ideally forever. Links to the old address don’t go away, even years later.
The most common situation: moving a website
Most companies deal with redirects precisely because of a redesign or a move to a new platform. There, it’s not one address that changes but potentially thousands at once.
Three things that most often make or break it:
- The mapping is done before launch, not after. The list of old addresses is pulled from the sitemap and Search Console, and each one is matched to the closest new page. The redirects then go live at the same moment as the new website.
- Redirects from past redesigns have to be carried over too. If a website has changed its structure three times in ten years, there are three layers of redirects. Drop them during the move and you lose links that were created two website generations ago.
- Don’t forget images and the switch from HTTP to HTTPS. The addresses changed there too, and backlinks point there too.
Expect rankings to dip slightly for a few weeks even after a perfectly executed job. That’s normal, and it will settle. Without redirects, it won’t.
Frequently asked questions
What’s the difference between a 301 and a 302 redirect, and when should I use which?
A 301 is permanent and tells search engines that the new address should be the main one. A 302 is temporary and keeps the original address in the index. Use a 301 when content is moving for good, and a 302 for maintenance, testing or a short-term campaign.
When should I use a permanent redirect instead of a temporary one?
Whenever the content won’t come back to its original address. Typically when you change your website’s structure, move to a new domain, switch to HTTPS or merge two pages. If you’re not sure, start with a temporary redirect, because it’s easier to back out of.
Does a 302 redirect pass SEO value?
Yes. Since 2016, no redirect has reduced link juice. The difference between 301 and 302 isn’t in how much strength passes through but in which address Google treats as the main one and shows in the search results.
How do I set up redirects without access to the server files?
Use a plugin or the admin. In WordPress, the most popular plugin is Redirection, and Rank Math can do it too. Shoptet and Upgates have address management right in the admin. You don’t need to code anything.
How do I test redirects after moving content?
The quickest way is the Redirect Path extension, which shows the whole path and the redirect type. For details, use Chrome’s developer tools, under the Network tab with “Preserve log” turned on. To scan the whole website, use Screaming Frog.
How do I handle redirecting a whole website?
Prepare a spreadsheet mapping old addresses to new ones before the new website launches, and redirect each address to the closest matching page, not to the home page. Avoid redirect chains and crawl the whole website after deployment.
How long should I keep redirects in place?
Ideally, forever. Google recommends at least a year, but links and bookmarks pointing to the old addresses live on for years. Remove the redirects and they instantly turn into error pages.
When should I use a redirect and when a canonical tag instead?
Use a redirect when the old address should stop working. Use a canonical tag, which tells Google which of several similar pages to treat as the main one, when both addresses have to stay available. A typical example is e-shop filters, where users need to see the filtered results.
Who can help with a website migration, including redirects?
Migrations are handled by web agencies and SEO consultants. At Apadore, mapping old addresses to new ones is a standard part of every redesign, including checks after deployment. Get in touch and we’ll go through it for your specific website.
The takeaway
Remember the matrix. Permanent or temporary decides which address Google shows in the results. Preserving data decides whether your forms keep working.
For an ordinary page that’s moving for good, use a 301. For a temporary change, a 302. And anywhere something gets submitted, the 308 and 307 pair.
You don’t need to rack your brain over percentages of link juice passed on. Today, it’s about something else: which address you declare the main one, and whether you lose an order along the way.
Planning a redesign or a move to a new domain? Redirects are a small detail that’s easy to underestimate and expensive to pay for with a drop in search rankings. Get in touch and we’ll go through the address mapping with you before your new website goes live.
You’ll most often deal with redirects when moving a website, when thousands of addresses change at once. We describe the whole process, from address mapping through launch day to tracking rankings, in our article on website migration.
Redirects have a second effect that’s often forgotten: every extra round trip between the browser and the server makes the page load longer. A chain of two or three redirects in a row can slow down a website much like unoptimized images can, as we explain in our article on speeding up your website.



