SEO

301 vs 302 Redirects: SEO Differences and When to Use Each

Compare 301 vs 302 redirects, understand 307 and 308, and test the first response, redirect chain and final URL with ToolMint or curl.

By ToolMint Editorial Team

ToolMint's editorial team creates practical SEO, web, and technical guides for marketers, developers, and website owners.

14 min read Published Jul 06, 2026 Updated Nov 12, 2026

Quick answer

In brief

A 301 indicates a permanent move, while a 302 indicates a temporary move. Use a permanent redirect when the destination should replace the original URL, and a temporary redirect when the original URL is expected to return. Verify the actual response with ToolMint's Redirect Checker.

Key facts

Best for
Choosing the right redirect status code for migrations, temporary campaigns, and URL changes.
Main standard or format
HTTP 3xx redirection status codes.
Processing method
Server, CDN, framework, CMS, or edge redirect rules.
Key limitation
A redirect status code does not fix irrelevant destinations, broken final URLs, or conflicting canonical tags.
Related tool
Redirect Checker
Last updated
Nov 12, 2026

Limitations

  • Search engines can interpret redirect intent over time, so one test result does not guarantee immediate indexing changes.
  • Redirect behavior can differ between production, staging, CDN, server, and framework layers.
  • This guide explains SEO and HTTP behavior; it is not a substitute for reviewing your own server configuration.

A 301 redirect signals a permanent move, while a 302 redirect signals a temporary move. Use a permanent redirect when the destination should replace the original URL. Use a temporary redirect when the original URL is expected to return, then verify the actual response with ToolMint's Redirect Checker.

The status code matters because it helps search engines decide which URL should remain indexed and which destination should become preferred. The redirect target must also be relevant, return a valid response, and align with canonical and internal-link signals.

Use this guide to compare 301 vs 302 redirects, choose the correct status, review implementation examples, and avoid common SEO mistakes before launch.


301 vs 302 Redirects: Quick Difference

Question Use 301 Use 302
Is the move permanent? Yes No
Should the new URL replace the old one? Yes Usually no
Common examples Migrations, merged pages, permanent slug changes A/B tests, maintenance, short campaigns
SEO intent Consolidate around the destination Preserve the temporary nature of the move

Decision rule: use 301 or 308 for a permanent move and 302 or 307 for a temporary move. When a non-GET request must retain its method and body, use the method-preserving 308 or 307 as appropriate.

Neither status code can rescue an irrelevant destination, a redirect chain, a broken final URL, or conflicting canonical tags.


What Is a 301 Redirect?

A 301 redirect is a permanent redirect from one URL to another.

It tells browsers and search engines that the original URL has moved permanently and that the new URL should be treated as the preferred destination.

Example:

https://example.com/old-page
↓ 301 redirect
https://example.com/new-page

A 301 redirect is commonly used when:

  • A page URL is permanently changed
  • A website moves from HTTP to HTTPS
  • A domain is migrated to a new domain
  • Two similar pages are merged into one stronger page
  • A deleted page has a better replacement
  • A non-www version redirects to www, or the reverse
  • A trailing slash version redirects to the preferred version

For SEO, a 301 redirect is usually the best choice when the change is permanent because it gives search engines a strong signal that the new URL should replace the old one.


What Is a 302 Redirect?

A 302 redirect is a temporary redirect from one URL to another.

It tells browsers and search engines that the original URL has moved temporarily and that the original URL may become active again later.

Example:

https://example.com/pricing
↓ 302 redirect
https://example.com/temporary-offer

A 302 redirect is commonly used when:

  • You are running an A/B test
  • A page is temporarily unavailable
  • A seasonal campaign is active for a short time
  • Users are temporarily sent to a sale or offer page
  • A page is under maintenance
  • You want the original URL to remain the main indexed URL

For SEO, a 302 redirect is useful only when the redirect is genuinely temporary. If a redirect will stay in place permanently, use a 301 instead.


301 vs 302 Redirects for SEO

The SEO difference between 301 vs 302 redirects comes down to the signal you send to search engines. Google Search Central describes permanent redirects as a signal that the destination should become canonical. Temporary redirects are followed, but they do not provide the same permanent canonical signal.

A 301 redirect tells search engines:

This page has permanently moved. Treat the new URL as the main version.

A 302 redirect tells search engines:

This page has temporarily moved. Keep the original URL in mind because it may return.

That difference matters because search engines need to decide which URL should appear in search results.

Does a 301 Redirect Affect SEO?

Yes, a 301 redirect can affect SEO because it changes which URL search engines should index and rank.

When used correctly, a 301 redirect helps consolidate ranking signals from an old URL to a new URL. This is why 301 redirects are commonly used during SEO migrations, URL cleanups, and page consolidation.

However, poor 301 redirect implementation can create SEO problems, especially if it causes:

  • Redirect chains
  • Redirect loops
  • Redirects to irrelevant pages
  • Broken final URLs
  • Mixed HTTP and HTTPS versions
  • Conflicting canonical tags

A 302 redirect can still be followed by search engines, but it does not send the same permanent move signal as a 301.

The phrase "link juice" does not describe a fixed amount you can measure from the status code. Google follows temporary redirects, but other signals can still affect which page is indexed. There is no fixed ranking gain or loss to calculate from one redirect response. Match the status to the actual move.

The main risk with using a 302 incorrectly is that search engines may continue treating the old URL as the primary version longer than you want.


Browser Caching Implications

Redirects can be cached. RFC 9110 defines 301 and 308 as heuristically cacheable; explicit cache controls and other rules still matter. Temporary responses can also be cached when permitted, so a 302 is not a guarantee that the next request will reach the server again.

Before making a move permanent, test the target and review Cache-Control with HTTP Header Checker. After a correction, compare a fresh request with cached browser or CDN behavior rather than assuming every visitor immediately receives the new rule.


301 Redirect vs 302 Redirect: Real Examples

Example 1: Website Redesign

You redesign your website and change this URL:

/old-services-page

To this URL:

/digital-marketing-services

Because the old URL will not return, use a 301 redirect.

/old-services-page → 301 → /digital-marketing-services

Example 2: HTTPS Migration

You move your website from HTTP to HTTPS:

http://example.com

To:

https://example.com

Because HTTPS should become the permanent version, use a 301 redirect.

http://example.com → 301 → https://example.com

Example 3: Temporary Promotion

You want to send visitors from your pricing page to a limited-time offer page for one week.

/pricing → 302 → /summer-offer

Because the pricing page will return as the main page after the campaign, use a 302 redirect.

Example 4: A/B Testing

You are testing two versions of a landing page:

/landing-page → 302 → /landing-page-variant-b

Because the test is temporary, use a 302 redirect.

Example 5: Product Page Replacement

An old product is permanently discontinued and replaced by a newer version:

/old-product → 301 → /new-product

Because the old product page should no longer be the primary URL, use a 301 redirect.


When to Use a 301 Redirect

Use a 301 redirect when the change is permanent.

Common 301 redirect use cases include:

  • Moving a page to a new URL
  • Migrating from HTTP to HTTPS
  • Changing from non-www to www
  • Changing from www to non-www
  • Merging duplicate or thin pages
  • Redirecting outdated content to a stronger updated page
  • Moving from an old domain to a new domain
  • Fixing permanently removed pages with relevant replacements
  • Cleaning up URL structures

A 301 redirect is usually the correct SEO choice when you want the new URL to replace the old URL in search results.


When to Use a 302 Redirect

Use a 302 redirect when the change is temporary.

Common 302 redirect use cases include:

  • A/B testing landing pages
  • Temporary campaign pages
  • Short-term sales pages
  • Maintenance pages
  • Temporarily unavailable products
  • Geo or device-based temporary routing
  • Testing a new page before making a permanent change

A 302 redirect is usually the correct SEO choice when you want the original URL to remain the main page over time.


301 vs 302 vs 307 vs 308 Redirects

Status Permanence Request-method behavior Typical use
301 Permanent A client may change a POST to GET Permanent URL moves and consolidation
302 Temporary A client may change a POST to GET Temporary campaigns and routing
307 Temporary Preserves the original method and body Temporary moves needing method preservation
308 Permanent Preserves the original method and body Permanent moves needing method preservation

RFC 9110 defines these HTTP behaviors. For Google Search, 301 and 308 communicate permanent moves; 302 and 307 communicate temporary moves. Match both the intended duration and the application's request behavior.


How to Set Up 301 and 302 Redirects

The exact setup depends on your server, CMS, or framework.

.htaccess Redirect Examples

Use this on Apache servers.

## 301 permanent redirect
Redirect 301 /old-page https://example.com/new-page

## 302 temporary redirect
Redirect 302 /temporary-page https://example.com/promo-page

Nginx Redirect Examples

Use this on Nginx servers.

## 301 permanent redirect
rewrite ^/old-page$ https://example.com/new-page permanent;

## 302 temporary redirect
rewrite ^/temporary-page$ https://example.com/promo-page redirect;

Next.js Redirect Examples

Use this in next.config.js.

module.exports = {
  async redirects() {
    return [
      {
        source: '/old-page',
        destination: '/new-page',
        permanent: true,
      },
      {
        source: '/temporary-page',
        destination: '/promo-page',
        permanent: false,
      },
    ];
  },
};

In the Next.js redirects configuration, permanent: true produces a 308 permanent redirect, not a literal 301. Setting permanent: false produces a 307 temporary redirect, not a literal 302. The Next.js redirect configuration documentation explains this choice to preserve the original request method.

WordPress Redirect Examples

In WordPress, you can set redirects using:

  • A redirect plugin
  • Your hosting control panel
  • Server configuration
  • SEO plugins that include redirect management

For SEO-critical redirects, always test the final status code after publishing the change.


Common Redirect Mistakes

Redirects are simple in theory, but mistakes are common.

Mistake Why It Hurts SEO Better Approach
Using 302 for a permanent move Search engines may keep the old URL indexed longer Use 301 when the move is permanent
Using 301 for a short campaign Search engines may treat the temporary page as permanent Use 302 for temporary campaigns
Redirect chains Slows crawling and creates unnecessary hops Redirect directly to the final URL
Redirect loops Users and bots cannot reach the destination Fix the redirect rule conflict
Redirecting to irrelevant pages Weak user experience and poor relevance Redirect to the closest matching page
Redirecting everything to the homepage Can look like a soft 404 pattern Redirect to relevant replacement URLs
Forgetting internal links Users still pass through old URLs Update internal links to the final URL
Ignoring canonical tags Conflicting signals confuse indexing Align canonicals with redirect targets

A clean redirect should usually have one hop only:

Old URL → 301 or 302 → Final URL with 200 status

Avoid this:

Old URL → 301 → Middle URL → 302 → Final URL

This hypothetical example has two redirect hops and three HTTP responses. The final 200 response is not another redirect:

HTTP/1.1 301 Moved Permanently
Location: https://example.com/middle-page

HTTP/1.1 302 Found
Location: https://example.com/almost-there

HTTP/1.1 200 OK

Each hop adds another request, increasing latency, crawl complexity, and avoidable redirect processing. The cleaner setup is to point /old-page directly at the final 200-status URL and remove the intermediate hop:

HTTP/1.1 301 Moved Permanently
Location: https://example.com/almost-there

HTTP/1.1 200 OK

How to Check If a Redirect Is 301 or 302

To determine whether a redirect is 301 or 302, request the URL and inspect the HTTP response status code. A 301 indicates a permanent redirect; a 302 indicates a temporary redirect.

ToolMint's Redirect Checker shows:

  • The first response and status code
  • Every redirect hop in order
  • The status code returned at each hop
  • The final URL and final HTTP status

Use a GET request to inspect the response a normal page retrieval receives. To print headers for the chain while discarding the body, follow redirects with an explicit limit.

Bash, macOS or Linux:

curl --silent --show-error --dump-header - --output /dev/null --location --max-redirs 10 "https://example.com/old-page"

Windows PowerShell:

curl.exe --silent --show-error --dump-header - --output NUL --location --max-redirs 10 "https://example.com/old-page"

The curl manual documents these options. curl -I sends HEAD, which a server can handle differently from GET. In the output, distinguish the first response, each Location and the final response.

ToolMint's checker follows server-side HTTP redirects using GET. It does not execute JavaScript navigation or prove that the destination is indexed. Authentication, request headers, location and network policies can produce different responses from a signed-in browser.


Test Redirects with ToolMint Redirect Checker

Not sure whether your URL is using a 301 or 302?

Use ToolMint's free redirect status code checker to test your redirect status code, inspect redirect chains, and confirm the final destination.

A good redirect testing workflow is:

  1. Paste the old URL into the Redirect Checker.
  2. Compare the first response with the intended permanent or temporary move, including 307 and 308 where relevant. A temporary redirect is not automatically an error.
  3. Review the destinations and hop count; resolve loops, unnecessary intermediates or an unexpected target.
  4. Check the final page separately for a valid response, relevant content, canonical and indexing controls. A 200 response alone does not prove indexability or indexing.
  5. Re-test after publication and record the requested URL, response chain and test date.

This is especially useful before and after:

  • Website migrations
  • URL structure changes
  • HTTPS migrations
  • Landing page tests
  • Campaign launches
  • Product page updates
  • Content pruning

For best results, also review related technical SEO signals such as canonical tags, indexability, sitemap URLs, robots.txt crawl rules, HTTP response headers, and internal links.


Worked Example: A Permanent Sitemap Redirect

On October 2, 2026, a request to https://tool-mint.com/sitemap.xml returned 308 Permanent Redirect. A direct request to https://www.tool-mint.com/sitemap.xml returned 200 OK. ToolMint's robots.txt references the www sitemap, and Search Console reported Success with 153 discovered pages after that URL was submitted.

A 308 signals a permanent move like a 301, while preserving the HTTP request method. When auditing your own redirect, inspect the response's Location header, follow that exact destination, and check its final status. Then make internal links, canonical URLs, and sitemap submissions point directly to the preferred URL. For page URLs, Search Console may report the old address as Page with redirect; inspect the destination separately to see whether it is indexed. A successful sitemap submission does not mean every listed page is indexed.


Best Practices for Redirect SEO

Follow these best practices to keep redirects clean and search-friendly.

Redirect to the Most Relevant Page

Do not redirect every deleted page to the homepage. Redirect old URLs to the closest matching replacement page.

Avoid Redirect Chains

A redirect chain happens when one URL redirects to another URL, which then redirects again.

Example:

/page-a → /page-b → /page-c

Better:

/page-a → /page-c

After creating redirects, update your internal links so they point directly to the final URL.

This improves crawl efficiency and gives users a cleaner experience. For larger migrations, also generate an updated XML sitemap so search engines can discover your final URLs more efficiently.

Keep Redirects Consistent with Canonical Tags

If a URL redirects to another page, the final page should usually have a self-referencing canonical tag. You can generate canonical URLs to avoid mixed signals between redirects and canonical tags.

When several live URLs expose the same or substantially similar content, use the duplicate content SEO guide to decide whether a canonical, redirect or content change is the right fix.

Avoid sending mixed signals like:

/page-a redirects to /page-b
/page-b canonical points back to /page-a

Test Redirects After Deployment

Always test redirects after publishing changes. A redirect that works in staging may behave differently in production because of CDN rules, hosting settings, cache, or framework routing. You can also inspect HTTP response headers to review server responses, caching, compression, and security headers.

Check Crawl Rules and Metadata

After redirect changes, make sure important destination pages are not blocked from crawling. Review your robots.txt crawl rules and confirm that search engines can access the final URLs.

Before publishing SEO-critical pages, analyze page meta tags to confirm that titles, descriptions, canonical tags, and social metadata are clean.


Sources

For deeper technical reference, you can review these resources:


Frequently asked questions

What is the difference between 301 and 302 redirects?

A 301 redirect is permanent, while a 302 redirect is temporary. Use 301 when the old URL should be replaced by the new URL. Use 302 when the original URL will return later.

Is 301 or 302 better for SEO?

A 301 redirect is usually better for permanent SEO changes because it clearly tells search engines that the new URL should replace the old one. A 302 redirect is better for temporary changes, tests, offers, or maintenance.

When should I use a 301 redirect?

Use a 301 redirect for permanent URL changes, HTTPS migrations, domain migrations, page consolidation, deleted pages with relevant replacements, and permanent website restructuring.

When should I use a 302 redirect?

Use a 302 redirect for temporary campaigns, A/B testing, maintenance pages, seasonal offers, or any situation where the original URL should remain the main page.

Does a 302 redirect pass SEO value?

Search engines can follow a 302 redirect, but a 302 does not send the same permanent move signal as a 301. If the move is permanent, use a 301 redirect. If the move is temporary, use a 302 redirect.

How do I check if a redirect is 301 or 302?

Use ToolMint's Redirect Checker or the GET-based curl commands above. Inspect the first HTTP response, each redirect and the final status. curl -I tests HEAD and can return a different result.

What happens if I use the wrong redirect?

Using the wrong redirect can confuse search engines about which URL should be indexed. A 302 used for a permanent move may delay consolidation. A 301 used for a temporary move may cause search engines to treat the temporary destination as the main URL.

Should I redirect broken pages to the homepage?

Usually no. Redirect broken pages to the closest relevant replacement page. If there is no relevant replacement, it may be better to return a proper 404 or 410 status instead of redirecting everything to the homepage.

Can redirect chains hurt SEO?

Yes. Redirect chains can slow down crawling, create unnecessary hops, and make technical SEO harder to manage. Redirect old URLs directly to the final destination whenever possible.

Are 307 and 308 redirects important for SEO?

Yes. A 308 communicates a permanent move and a 307 a temporary move while preserving the request method and body. Google groups 308 with permanent redirects and 307 with temporary redirects; choose by the intended duration and HTTP behavior.

Use these ToolMint tools to improve your technical SEO workflow:


Final Thoughts

The difference between 301 vs 302 redirects is simple, but the SEO impact can be significant.

Use a 301 redirect when the move is permanent and you want search engines to treat the new URL as the main destination.

Use a 302 redirect when the move is temporary and the original URL should remain important.

Before publishing redirect changes, run a redirect chain and status code check. Confirm the status code, review each redirect hop, and make sure the final URL returns a successful 200 response.

A clean redirect setup helps users reach the right page, helps search engines understand your site structure, and protects your SEO performance during migrations, campaigns, and technical updates.

Enjoyed this guide? Share it.

Related tools

Browse all →

Related guides