Skip to content
Bdazzil Marketing

Blog SEO

How to Handle Redirects (301 vs. 302) for SEO

Learn when to use 301 vs 302 redirects, how Google treats each one, and how to set up, test and maintain redirects without losing rankings or traffic.

7 minute read

Choosing between 301 vs 302 redirects looks like a small technical decision, but it tells search engines whether a change is permanent or temporary, and that affects which URL appears in search results. Use the wrong one and Google may keep showing an old address, or treat a short promotion as a permanent move. Getting redirects right is one of the simplest ways to protect rankings during everyday site changes, and it is a routine part of a well-run SEO program.

This guide explains what each redirect type means, when to use it, how Google interprets it, and how to implement and audit redirects safely. For the broader discipline, see our approach to technical SEO.

What a redirect actually does

A redirect is an instruction from the server that says the requested URL now lives somewhere else. The browser or crawler receives a status code in the 300 range plus the new location, then requests the new URL. Visitors usually never notice. Search engines read the status code to decide what to do with the old URL in their index.

Server-side redirects are the most reliable kind. Meta refresh tags and JavaScript redirects also work in many cases, but Google treats them as less clear signals and they can be slower for users, so reserve them for situations where you cannot change the server configuration.

301 vs 302 redirects explained

The two most common codes differ in one key respect: permanence.

CodeMeaningSignal to Google
301 Moved PermanentlyThe page has moved for goodStrong signal that the new URL should be shown in results
302 FoundThe page is temporarily elsewhereWeak signal, the original URL usually stays indexed
307 Temporary RedirectTemporary, request method preservedTreated like a 302
308 Permanent RedirectPermanent, request method preservedTreated like a 301

Google has stated that 3xx redirects do not cause a loss of ranking signals in the way older SEO advice suggested. The real difference is canonicalization: which URL Google chooses to show. A 301 says “show the new one”. A 302 says “keep showing the old one for now”. If a 302 stays in place for a long time, Google may eventually treat it as permanent, but relying on that is slow and unpredictable.

When to use a 301 redirect

Use a 301 whenever the old URL will not come back. Common cases include:

  • Changing a page’s URL or slug, for example after improving it for a target keyword.
  • Merging two similar pages into one stronger page.
  • Moving to a new domain or rebranding.
  • Switching from HTTP to HTTPS, or standardizing on www or non-www.
  • Restructuring categories or migrating to a new platform with new URL patterns.
  • Retiring a service or product when a closely related replacement exists.

When to use a 302 redirect

Use a 302 or 307 only when you genuinely intend to restore the original URL. Typical cases are:

  • A product temporarily out of stock, pointing visitors to a related category while you restock.
  • A seasonal campaign, such as a Ramadan or White Friday landing page, shown in place of a standard page for a defined period.
  • Site maintenance on a specific section, where visitors are sent to a holding page.
  • A/B tests that redirect some visitors to a variant URL, which Google recommends handling with a 302 so the original stays indexed.
  • Geolocation or language prompts, where you need to send some users elsewhere without changing the canonical page.

If a “temporary” redirect has been in place for months with no plan to reverse it, change it to a 301.

How to implement redirects

The method depends on your platform and hosting. Use one method consistently so redirects are easy to find and maintain.

PlatformCommon methodNotes
Apache hostingRules in the .htaccess fileFast, but syntax errors can take the site down, so test on staging
Nginx hostingServer block configurationUsually requires developer or host access
WordPressA redirect plugin or SEO plugin redirect managerEasy to manage, logs 404s, adds a small overhead
Shopify and hosted platformsBuilt-in URL redirect settingsSimple, but options for complex patterns are limited
CDN or edgeRedirect rules at the CDN, such as CloudflareVery fast, useful for bulk or domain-level rules

For bulk changes, use pattern-based rules where possible, for example redirecting an entire old folder to a new one. For a migration, keep a spreadsheet of every old URL, its destination and its status code, and import it into your chosen tool.

Redirect best practices

  1. Redirect to the most relevant page. Send visitors to the closest equivalent content. Redirecting unrelated pages to the home page is often treated as a soft 404.
  2. Avoid chains. A to B to C slows the page and can stop crawlers following. Point every old URL straight to the final destination.
  3. Update internal links. Change links in your navigation, content and sitemap to the new URL so visitors and crawlers do not pass through redirects at all.
  4. Keep the XML sitemap clean. List only final, indexable URLs, never redirected ones.
  5. Preserve language pairs. On bilingual sites, redirect Arabic URLs to Arabic destinations and English to English, and update hreflang.
  6. Keep permanent redirects long term. Google advises at least a year, and keeping them indefinitely is safer because external links keep using old URLs.
  7. Document every redirect. Record the date, reason and owner so future changes do not create loops or conflicts.

Auditing your redirects

Redirects accumulate over the years, especially after several redesigns. Audit them at least once or twice a year.

  • Crawl the site with a tool such as Screaming Frog to list every redirect, its status code and destination.
  • Look for chains, loops and redirects pointing to 404 pages.
  • Find 302s that should be 301s, a common result of plugin defaults or rushed fixes.
  • Check the Pages report in Search Console for “Page with redirect” entries and confirm they are intentional.
  • Test important redirects manually after server, plugin or CDN changes.

Frequently asked questions

Do 301 redirects lose ranking power?

Google has said that 3xx redirects do not lose PageRank, which retired the older belief that each redirect leaks value. The bigger risk is choosing an irrelevant destination or creating chains. Redirect to a closely matching page, update internal links, and the new URL should inherit the old page’s signals over time.

What happens if I use a 302 instead of a 301 by mistake?

Google will usually keep the old URL indexed and may show it in results instead of the new one. If the 302 stays in place for a long time, Google may eventually treat it as permanent, but that is slow and unpredictable. Change mistaken 302s to 301s as soon as you find them.

How many redirects is too many?

There is no penalty for having many redirects on a site, and large sites often have thousands. The problems come from chains, loops and slow redirect handling. Keep each redirect to a single hop, and review plugins or rule files that hold very large lists, since some methods can slow page loading.

Should I redirect deleted pages with no replacement?

Not necessarily. If a page has no relevant equivalent, no meaningful backlinks and no traffic, letting it return a 404 or 410 is appropriate. Redirect only when there is a page that genuinely serves the same need, so visitors and search engines land somewhere useful.

Keeping site changes safe for search

Understanding 301 vs 302 redirects comes down to intent: permanent changes get a 301, temporary ones a 302. Add relevant destinations, single hops, clean internal links and regular audits, and site changes stop putting your visibility at risk.

If you are planning URL changes or want your existing redirects reviewed, our team would be glad to talk it through with you.

Keep reading

SEO

How to Use AI & Automation in SEO Reporting

AI SEO reporting promises to remove the most tedious part of search marketing: pulling numbers from several tools every month, pasting them into slides and writing the same comment...

SEO

Common SEO Reporting Mistakes & How to Avoid Them

Most SEO reporting mistakes are not about bad data. They come from reporting the wrong things, in the wrong order, without enough context for the reader to understand what changed...

Free Growth Audit

Tell us about your project

A few details and we'll reply within one business hour, with a 30-minute call and a written plan to follow.

Sunday to Thursday, 9am to 6pm UAE time. Replies within one business hour.