301 Redirect
May 25, 2026302 Redirect
A 302 redirect is a temporary HTTP status code that signals a web page has moved to a different URL for a short period, while the original URL retains its ranking value and remains the canonical address.
302 Redirect Definition and Core Function
A 302 redirect instructs browsers and search engines that the requested URL is temporarily located at a new address. The server returns a “302 Found” response, sends the user to the new destination, and preserves the original URL as the primary location. Search engines, such as Google, Bing, and Yandex, continue to index the original URL during the redirect period.
The 302 status code belongs to the 3xx HTTP response class. There are 4 main redirect types in this class, including 301 (permanent), 302 (temporary), 307 (temporary with method preservation), and 308 (permanent with method preservation).
302 Redirect vs 301 Redirect Comparison
| Attribute | 302 Redirect | 301 Redirect |
|---|---|---|
| Duration | Temporary | Permanent |
| Link Equity Transfer | Minimal to none | Full (approximately 90-99%) |
| Indexed URL | Original URL | New URL |
| Browser Caching | Not cached by default | Cached aggressively |
| Primary Use Case | Short-term changes | Permanent site moves |
| HTTP Status Code | 302 Found | 301 Moved Permanently |
Common Use Cases for a 302 Redirect
A 302 redirect applies to scenarios involving temporary URL changes. There are 5 standard use cases for this status code, such as A/B testing, geo-targeting, maintenance pages, seasonal promotions, and inventory shortages.
Implement a 302 redirect for the following situations:
- Run an A/B test that compares 2 page versions.
- Display a maintenance message during server updates.
- Direct visitors to a regional URL based on location.
- Show a temporary promotional landing page.
- Replace an out-of-stock product with a category page.
Technical Implementation of a 302 Redirect
A 302 redirect operates at the server level through configuration files or application logic. Web servers, such as Apache, Nginx, and IIS, support 302 redirects through specific directives.
The Apache configuration uses the .htaccess file with the directive Redirect 302 /old-page /new-page. The Nginx configuration uses the directive return 302 /new-page inside a server block. WordPress sites apply 302 redirects through plugins, such as Redirection, Yoast SEO, and Rank Math.
A 302 redirect is a temporary HTTP status code that signals a web page has moved to a different URL for a short period, while the original URL retains its ranking value and remains the canonical address.
302 Redirect Definition and Core Function
A 302 redirect instructs browsers and search engines that the requested URL is temporarily located at a new address. The server returns a “302 Found” response, sends the user to the new destination, and preserves the original URL as the primary location. Search engines, such as Google, Bing, and Yandex, continue to index the original URL during the redirect period.
The 302 status code belongs to the 3xx HTTP response class. There are 4 main redirect types in this class, including 301 (permanent), 302 (temporary), 307 (temporary with method preservation), and 308 (permanent with method preservation).
302 Redirect vs 301 Redirect Comparison
| Attribute | 302 Redirect | 301 Redirect |
|---|---|---|
| Duration | Temporary | Permanent |
| Link Equity Transfer | Minimal to none | Full (approximately 90-99%) |
| Indexed URL | Original URL | New URL |
| Browser Caching | Not cached by default | Cached aggressively |
| Primary Use Case | Short-term changes | Permanent site moves |
| HTTP Status Code | 302 Found | 301 Moved Permanently |
Common Use Cases for a 302 Redirect
A 302 redirect applies to scenarios involving temporary URL changes. There are 5 standard use cases for this status code, such as A/B testing, geo-targeting, maintenance pages, seasonal promotions, and inventory shortages.
Implement a 302 redirect for the following situations:
- Run an A/B test that compares 2 page versions.
- Display a maintenance message during server updates.
- Direct visitors to a regional URL based on location.
- Show a temporary promotional landing page.
- Replace an out-of-stock product with a category page.
Technical Implementation of a 302 Redirect
A 302 redirect operates at the server level through configuration files or application logic. Web servers, such as Apache, Nginx, and IIS, support 302 redirects through specific directives.
The Apache configuration uses the .htaccess file with the directive Redirect 302 /old-page /new-page. The Nginx configuration uses the directive return 302 /new-page inside a server block. WordPress sites apply 302 redirects through plugins, such as Redirection, Yoast SEO, and Rank Math.