A 302 URL redirect is a temporary redirect that tells browsers and search engines that a URL has temporarily moved to a different location, and that the original URL is expected to return.
When a visitor requests a URL with a 302 redirect, their browser follows the redirect to the new destination. But unlike a permanent redirect, a temporary redirect signals that this change is not meant to last, which has implications for your law firm’s SEO efforts.
This guide goes deep on 302 redirects to help you manage them correctly. You’ll learn about URL redirects, how search engines process them, when to use them (and when not to), and how to implement them correctly without creating SEO problems.
The Cost of Redirect Mistakes
Most redirect mistakes go overlooked at first. A URL gets moved, traffic keeps coming in, and nothing seems broken. But using the wrong type of redirect can:
- Prevent search engines from consolidating ranking signals to the right URL
- Leave the wrong page indexed while your real target page sits in limbo
- Cause link equity to sit on an old URL indefinitely
- Create redirect chains as sites evolve over time
Who this guide is for: SEO professionals, web developers, and site owners who want to understand 302 redirects at a level that goes beyond the basic definition.
How a 302 Redirect Works
HTTP status codes are how servers communicate the result of a request to the browser. The 302 status code means “Found,” a slightly misleading name that historically indicated the resource was found at a different temporary location.
The technical definition:
- HTTP Status Code: 302
- Meaning: Found (temporary redirect)
- HTTP version: HTTP/1.0 and HTTP/1.1
- Official name in HTTP/1.1: “302 Found”
When a browser or search engine crawler requests a URL that has a 302 redirect in place, the following happens:
- Browser sends a GET request to the original URL (e.g., https://example.com/summer-sale/)
- Server responds with a 302 status and a Location header pointing to the temporary destination
- Browser follows the redirect and requests the new URL
- Server responds with a 200 OK and serves the page content
When a server returns a 302, the raw HTTP response header looks like this:
HTTP/1.1 302 Found
Location: https://example.com/sale/
Content-Type: text/html
The Location header is what tells the browser where to go next. Without it, a 302 response would leave the browser with nowhere to redirect.
302 vs Other Redirect Types
Redirect Type | Permanent Yes/No | Preserves Request Method? | Use Case |
301 | Yes | Not Guaranteed | Permanent URL changes, domain migrations |
302 | No | Not Guaranteed | A/B testing, temporary campaigns, maintenance |
307 | No | Yes | Temporary moves where POST must survive the redirect |
308 | Yes | Yes | Permanent moves where POST must survive the redirect |
Meta Refresh | Either | N/A | Avoid for SEO; browser-level only |
JavaScript | Either | N/A | Last resort; inconsistent for crawlers |
For most SEO and content-focused use cases, the choice comes down to 302 vs. 301. The sections below explain that distinction in depth.
Differences Between 302 Redirects and 301 Redirects
The most important redirect decision on most websites is whether to use a 302 or a 301. They look similar from the user’s perspective because both send visitors to a new URL. But the signals they send to search engines are meaningfully different.
What Search Engines Understand by Temporary vs. Permanent
The core difference is intent. A 301 tells Google, “Forget about the old URL. The new URL is the permanent canonical home for this content.”
A 302 tells Google: “Don’t forget the old URL. The new destination is only temporary.”
Factor | 301 Redirect | 302 Redirect |
Signal to search engines | "This URL has permanently moved" | "This URL has temporarily moved" |
Indexing behavior | Search engines typically replace the old URL with the new URL in their index | Search engines may continue indexing the original URL |
Link equity (PageRank) transfer | Generally transfers to the new URL | May not transfer; original URL may retain link equity |
Original URL re-indexing | Search engines expect never to see the old URL as a primary page again | Search engines expect the original URL to return |
Typical cache duration | Search engines cache the redirect aggressively | Search engines may cache less aggressively |
In theory, a 302 redirect signals a temporary move, that Google should preserve the original URL in its index, and that it should not transfer full link equity to the temporary destination.
In practice, Google has acknowledged that its handling is more complex than a strict read of the HTTP spec would suggest.
John Mueller, Search Advocate at Google, has stated that if a 302 redirect has been in place for a long time, Google may begin treating it more like a 301, consolidating indexing and link equity toward the destination URL.
However, this behavior is not guaranteed and should not be relied on.
- The timeline for when Google “upgrades” a long-standing 302 to 301-like treatment is unclear
- Google may revert this behavior if the original URL shows signs of activity
- Signals can be fragmented across both URLs during the transition
- Testing and A/B scenarios with multiple redirect destinations can create conflicting signals
Google’s official guidance says to use a 301 redirect when the redirect is permanent and a 302 only when you genuinely intend for the original URL to return. Do not use a 302 as a lazy substitute for a 301.
If a 302 redirect has been in place for months, Google may treat it similarly to a 301, but this is not guaranteed and should not be your strategy.
Apply this to common scenarios:
Scenario | Correct Redirect |
Moving a page to a new slug permanently | 301 |
Domain migration | 301 |
HTTPS upgrade | 301 |
A/B test redirecting 50% of traffic | 302 |
Maintenance page for 2 hours | 302 |
Seasonal promo page (returns next year) | 302 |
Geo-targeting visitors to a regional page | 302 |
API endpoint temporarily moved | 307 |
Permanent content restructure | 301 |
The golden rule of 302 redirects: if you are unsure whether the original URL will return, treat the move as permanent and use a 301. A misplaced 302 leaves your SEO signals ambiguous. A misplaced 301 for a page that returns is recoverable if you add the original URL back and update or remove the redirect.
When to Use a 302 Redirect (Legitimate Use Cases)
A 302 redirect is the right tool for a specific set of situations. Outside of these scenarios, a 301 is almost always the better choice.
A/B Testing and Multivariate Experiments
A/B testing redirects temporarily send a portion of visitors to an alternative version of a page to measure which version performs better.
Example: Your current pricing page lives at /pricing/. You want to test a new layout at /pricing-v2/. You use a 302 redirect to send 50% of visitors to /pricing-v2/ while keeping /pricing/ as the canonical URL in search engines.
Why 302 works here: The original URL (/pricing/) is not going away. It stays the primary version. You want search engines to keep indexing it, not to transfer signals to the test variation.
Best practices for A/B redirect testing:
- Use the rel=canonical tag on the test variation pointing back to the original URL
- Limit test duration, because the longer the redirect runs, the more Google may start treating it as a de facto permanent change
- End the test by removing the redirect entirely
Temporary Site Maintenance or Redesigns
When your site or a specific section undergoes maintenance, you may want to redirect visitors to a holding page without signaling to Google that the original URL is permanently gone.
Example: /checkout/ is down for a payment system migration from 10 PM to 6 AM. You temporarily redirect to /maintenance/.
Why 302 works here: The original URL will return. A 301 here would cause Google to start treating /maintenance/ as the canonical checkout page, but that’s exactly the opposite of what you want.
Timing considerations: For maintenance windows under 24 to 48 hours, a 302 is appropriate.
Alternative: If the entire site is under maintenance for a very short period, you may use a 503 redirect, which simply signals that the site is temporarily down for maintenance.
Geo-Targeting and Language-Based Redirects
Sites that serve different content to users in different countries or speaking different languages might use redirects to send visitors to the correct regional version.
Example: A visitor from France visits https://example.com/. A 302 redirect sends them to https://example.com/fr/.
Why 302 is often used: The original URL is not going away. It remains the global default. The redirect is based on user context (location), not a permanent URL change.
Important note: Google generally recommends using `hreflang` tags and separate URLs for internationalized content rather than relying on redirect-based geo-targeting.
How to Implement a 302 Redirect
This section focuses specifically on the code and configuration for 302 redirects. See our larger guide for full step-by-step platform guides covering all redirect types.
Apache (.htaccess) 302 Redirect
For a single-page temporary redirect in Apache, add this to your .htaccess file:
```apache
Redirect 302 /old-page/ https://www.example.com/new-page/
```
Omitting the status code defaults to 302 in Apache, but being explicit is always clearer:
```apache
# Explicit 302
Redirect 302 /summer-sale/ https://www.example.com/deals/
# Pattern-based 302 (redirect an entire folder temporarily)
RedirectMatch 302 ^/sale/(.*) https://www.example.com/promotions/$1
```
Common Apache 302 mistakes:
- Using Redirect without a status code and assuming it defaults to 301 (it defaults to 302, which is fine here, but know what you’re implementing)
- Leaving Apache 302 redirects in place for months, at which point a 301 is more appropriate
Nginx 302 Redirect
In your Nginx server block, use the return directive with the 302 status code:
```nginx
# Single-page 302 redirect
location = /summer-sale/ {
return 302 https://www.example.com/deals/;
}
# Folder-level 302 redirect
location /old-promo/ {
return 302 https://www.example.com/new-promo/;
}
```
After editing, always test before reloading:
```bash
sudo nginx -t
sudo systemctl reload nginx
```
WordPress 302 Redirect
Using the Redirection plugin:
- Go to Tools > Redirection
- Enter the old URL path in the source field (e.g., /summer-sale/)
- Enter the destination URL (e.g., https://www.example.com/deals/)
- Change the redirect type to 302 – Found
- Save
The Redirection plugin defaults to 301, so you must actively change the type to 302 for temporary redirects.
Using functions.php (for developers):
```php
function my_temporary_redirect() {
if ( is_page( 'summer-sale' ) ) {
wp_redirect( home_url( '/deals/' ), 302 );
exit;
}
}
add_action( 'template_redirect', 'my_temporary_redirect' );
```
The 302 parameter is the status code. Change it to 301 for a permanent redirect.
Cloudflare 302 Redirect
In Cloudflare, create a Redirect Rule:
- Go to Rules > Redirect Rules
- Create a new rule
- Set the condition (e.g., URI path equals /summer-sale/)
- Set the response type to 302 Dynamic Redirect
- Set the destination URL
Cloudflare’s Bulk Redirects default to 301. If you need a bulk 302, you must configure the status code explicitly in the redirect list settings.
SEO Impact of 302 Redirects: What You Need to Know
Using the wrong redirect type affects how search engines assign ranking signals, crawl your pages, and decide which URLs to index. Understand the SEO implications of 302 redirects to avoid mistakes that can affect your site’s rankings.
Link Equity and PageRank Considerations
The question of whether 302 redirects pass link equity is one of the most debated in SEO, and the honest answer is: it depends.
Historical behavior: Early SEO convention held that 302 redirects did not pass link equity, whereas 301 redirects did. This was largely accurate in the early 2000s.
Current behavior: Google has evolved significantly. In practice, Google does pass some link equity through 302 redirects, particularly for long-standing ones. However:
- The transfer is not guaranteed to be equivalent to a 301
- Google may split signals between the original and destination URLs
- The original URL may retain some PageRank while the destination also accumulates some
Do not use a 302 to preserve link equity on the original URL while also sending traffic to a new page. If you want full PageRank consolidation at the destination, use a 301.
Crawl Budget and Indexation Effects
Crawl budget is the time and resources Google allocates to crawling your site. Every extra redirect URL Googlebot must process uses some of that budget.
With 302 redirects:
- Google may continue crawling both the original URL and the destination URL, effectively using double the crawl budget for those pages
- For large sites with thousands of 302 redirects, this can meaningfully impact how quickly Google discovers and indexes new or updated content
Monitoring in Google Search Console: Use the URL Inspection Tool to check how Google processes specific redirected URLs. Check whether Google is indexing the original URL or the destination URL. The answer tells you whether your 302 signal is being interpreted the way you expect.
Common SEO Mistakes with 302 Redirects
- Using a 302 when the change is permanent. This is the most common mistake. A permanent URL change implemented with a 302 may never fully consolidate link equity or indexing at the new URL. The fix is straightforward: change the redirect to a 301.
- Leaving temporary redirects in place indefinitely. A 302 that runs for months or years is no longer temporary. Set calendar reminders to revisit temporary redirects and either remove them, upgrade them to 301, or confirm they are still appropriate.
- Creating redirect chains. A redirect chain happens when a URL redirects through multiple hops:
```
/old-page/ > 302 > /interim-page/ > 301 > /final-page/
```
Each additional hop slows crawling. Flatten chains so the original URL points directly to the final destination.
- Applying 302 during site migrations. Site migrations should use 301 redirects. Using 302 during a migration is a common mistake that leaves ranking signals fragmented across the old and new domains for months.
Troubleshooting 302 Redirect Issues
Redirect problems often go undetected until they show up as ranking drops, crawl anomalies, or unexpected indexing behavior in Google Search Console. The steps below walk through how to find 302 redirects on your site, diagnose redirect chains, and correct misconfigured redirects.
How to Detect 302 Redirects on Your Site
Browser DevTools:
- Open the page in Chrome
- Right-click > Inspect > Network tab
- Refresh the page
- Click the original URL in the request list
- Check the Status field for 302
Using curl:
```bash
curl -I https://www.example.com/old-page/
```
A 302 response looks like:
```
HTTP/2 302
location: https://www.example.com/temporary-destination/
```
Screaming Frog: Run a crawl, filter by Response Codes > 3xx to find all redirects. Use the Redirect Chains report to find multi-hop paths. The Redirect Type column shows whether each redirect is a 302 or 301.
Google Search Console: The URL Inspection Tool shows whether Google treats a URL as redirected and which URL it has chosen as the canonical.
Diagnosing Redirect Chains
A redirect chain with a 302 in the middle is particularly problematic because it combines the link equity ambiguity of a 302 with the crawl waste of a chain.
Identify chains with curl:
```bash
curl -IL https://www.example.com/old-page/
```
The -L flag follows all redirects. If you see more than one 3xx response before a 200, you have a chain.
Example output showing a chain:
```
HTTP/2 302
location: https://www.example.com/interim/
HTTP/2 301
location: https://www.example.com/final-page/
HTTP/2 200
```
Fix: Update the first redirect (/old-page/) to point directly to /final-page/, eliminating the intermediate hop.
Fixing Incorrect 302 Redirects
If you discover 302 redirects that should be 301s, fix them:
- Audit existing redirects using Screaming Frog or your redirect plugin
- Identify long-running 302s (anything older than a few weeks that is genuinely permanent)
- Update the redirect type to 301 in your server config, plugin, or hosting dashboard
- Verify the fix with curl or browser DevTools (you should see a 301 status code)
- Request re-indexing in Google Search Console using the URL Inspection Tool for high-priority pages
After switching from 302 to 301, give Google a few weeks to re-process the updated signals. You may see gradual ranking consolidation toward the destination URL during that period.
Advanced 302 Redirect Concepts
The previous sections cover the fundamentals that most websites will encounter day to day. This section goes deeper into the technical distinctions that may apply only to specific situations, such as the difference between 302 and 307 at the HTTP method level, how JavaScript frameworks handle temporary redirects, and how to build redirect monitoring into your workflow.
302 Found vs. 307 Temporary Redirect
Both 302 and 307 signal a temporary redirect but differ in one way: HTTP method preservation.
When a browser sends a request, it uses different HTTP methods depending on the action:
- GET: requesting a page (typing a URL, clicking a link)
- POST: submitting data (forms, checkouts, logins)
When a 302 redirect fires on a POST request, most browsers automatically switch to a GET request at the new URL. In practice, that means any POST data (form submissions, checkout data) may be lost.
A 307 redirect tells the browser to repeat the same type of request at the new URL. If the original was a POST, the browser sends a POST to the redirect destination.
When to use 307 instead of 302:
- Your web application has a temporary redirect on an endpoint that receives form submissions or API calls
- The POST data must survive the redirect (e.g., checkout flows, login sequences)
- You are building web apps or REST APIs, not standard content pages
For most websites, you will almost never need a 307. Standard page redirects involve GET requests, and 302 handles them correctly.
Factor | 302 Found | 307 Temporary Redirect |
Temporary redirect? | Yes | Yes |
Preserves POST method? | No (converts to GET) | Yes |
Typical use case | Content pages, campaigns, maintenance | Web apps, API endpoints, forms |
SEO behavior | Same (both signal temporary move) | Same (both signal temporary move) |
302 Redirects in JavaScript Frameworks
Modern JavaScript frameworks like Next.js, React, and Angular handle redirects differently depending on whether rendering is server-side or client-side.
Why this matters for SEO: Client-side redirects (executed in the browser after the page loads) are less reliable for search engines than server-side redirects (executed at the server before any page content is delivered).
Next.js server-side 302 redirect:
In next.config.js:
```javascript
module.exports = {
async redirects() {
return [
{
source: '/summer-sale',
destination: '/deals',
permanent: false, // false = 302 (temporary)
},
]
},
}
```
Setting permanent: false returns a 307 redirect in Next.js (not a 302, despite the name). For a true 302, use Next.js Middleware:
```javascript
// middleware.js
import { NextResponse } from 'next/server'
export function middleware(request) {
if (request.nextUrl.pathname === '/summer-sale') {
return NextResponse.redirect(new URL('/deals', request.url), 302)
}
}
```
React (client-side only):
React applications running purely client-side cannot issue true server-side HTTP 302 redirects. A React Router redirect fires in the browser after the page has already started loading, so Googlebot may see the original page before the redirect takes effect.
For SEO-critical redirects in React apps, use Next.js (server-side rendering), an edge layer (Cloudflare, Vercel Edge Middleware), or a backend redirect at the server level.
Ensuring search engine compatibility:
- Always prefer server-side or edge-level redirects for SEO pages
- Test JS redirects with Google Search Console’s URL Inspection Tool to confirm Googlebot sees the correct destination
- Use rel=canonical on test variation pages to reinforce which URL Google should treat as primary
Redirect Monitoring and Automation
For sites that run ongoing campaigns, A/B tests, or frequent redirects, consider automated redirect monitoring:
- Screaming Frog Scheduled Crawls: Set Screaming Frog to crawl your site on a schedule and email you a redirect report
- Ahrefs Site Audit: Runs ongoing crawls and flags new redirect chains, loops, and broken redirects in the Issues report
- Google Search Console alerts: Monitor for spikes in 404 errors or coverage drops that may indicate broken redirects
Development teams deploying code changes that affect URL structures can add redirect validation to the CI/CD process:
```bash
# Example: curl-based redirect check in a CI script
REDIRECT_STATUS=$(curl -o /dev/null -s -w "%{http_code}" -I https://example.com/old-page/)
if [ "$REDIRECT_STATUS" -ne 302 ]; then
echo "ERROR: Expected 302, got $REDIRECT_STATUS"
exit 1
fi
```
Adding checks like this to your deployment pipeline catches incorrect redirect types before they go to production.
Frequently Asked Questions (FAQ)
Does a 302 redirect pass link equity (link juice)?
It depends, and the answer has evolved over time. Google has confirmed that link equity can pass through 302 redirects, especially long-standing ones. However, the transfer is not as guaranteed as a 301. For new redirects, search engines may split signals between the original and destination URLs while they observe the redirect. If your goal is to fully consolidate link equity at a new URL, use a 301.
How long can I keep a 302 redirect before it becomes a problem?
There is no hard deadline, but the general guideline from the SEO community is that redirects running longer than a few months start to behave more like permanent redirects in Google’s eyes, whether or not you intend them to. If your temporary redirect has been in place for more than 3 months and the original URL is still not returning, consider changing it to a 301 redirect.
Will a 302 redirect hurt my SEO rankings?
Correct 302 usage for genuinely temporary situations typically does not hurt rankings. The original URL stays indexed, and the redirect destination receives traffic in the interim. The problem arises when a 302 is used where a 301 should be. In those cases, ranking signal consolidation may be delayed or incomplete, which can suppress the new URL’s rankings and cause the old URL to linger in search results.
Can I use a 302 redirect for a permanent URL change?
No. A 302 signals to Google that the original URL is coming back. If the change is permanent, Google may never fully transfer ranking signals and may continue indexing the old URL. Use a 301 for any permanent URL change.
Do 302 redirects work differently on mobile vs. desktop?
The HTTP redirect mechanism itself works the same regardless of device. However, if you are using JavaScript-based geo-redirects or device-detection redirects, behavior can vary based on how the browser or crawler processes JavaScript. Googlebot primarily crawls as a mobile browser, which means mobile-specific JavaScript redirects may not be processed consistently. Use server-side redirects when possible.
What happens if I have a chain of 302 redirects?
A chain of 302 redirects, or a mix of 302 and 301 redirects in a chain, creates multiple problems, such as slower page loading, wasted crawl budget, and fragmented link equity signals. Each hop in the chain may dilute the ranking signals passing to the final URL. Fix chains by updating the original redirect to point directly to the final destination.
Should I use a 302 or 301 redirect for an HTTP-to-HTTPS migration?
Always use a 301 redirect for an HTTP-to-HTTPS migration. This is a permanent change because the HTTP version of the site is not coming back. A 302 here would tell Google to keep treating your HTTP URLs as the primary version, which is the opposite of what you want. Use 301s across the board for HTTPS migrations and confirm that your HTTPS pages have the correct canonical tags.
Making the Right Redirect Decision Every Time
A 302 is genuinely useful, but only in the right circumstances. The summary below distills the core principles so you have a clear reference point the next time a redirect decision comes up.
- A 302 redirect is a temporary redirect. Use it only when the original URL genuinely intends to return.
- Google may pass link equity through 302 redirects, but the transfer is less predictable than a 301.
- Google may eventually treat long-running 302 redirects as 301s, but this should not be your strategy.
- Legitimate 302 use cases include A/B testing, maintenance windows, geo-targeting, and seasonal campaigns.
- The golden rule: when in doubt, use a 301. Misplaced 302s leave your SEO signals ambiguous. A misplaced 301 is easier to recover from.
- 302 and 307 both signal temporary moves, but 307 preserves POST request methods, which is relevant mainly for web apps and APIs.
- For JavaScript frameworks, prefer server-side or edge-level redirects for important pages.