The 302 is correct when the move is genuinely temporary: A/B testing, maintenance windows, seasonal promos, geo-detours, and URL experiments.
Use case | Correct code | Why |
|---|---|---|
A/B test variant | 302 | Original URL must keep its ranking during the test |
Maintenance window | 302 | Restore the original once maintenance ends |
Seasonal promo | 302 | Redirect reverts after the campaign |
Geo-detour (region) | 302 | Tied to the visitor's geography, not the content |
URL migration (permanent) | 301 or 308 | Use 302 here and lose 20–40% traffic |