3xx RedirectionCommonly usedRFC 9110

302Found

Resource temporarily moved to a different URL.

What it means

The resource is temporarily at a different URL. Unlike 301, search engines do not update their links and SEO value is not transferred. The original URL should be used for future requests. Browsers may change POST to GET on redirect.

When to use it

  • Temporary redirects during maintenance
  • Redirecting after login/logout
  • A/B testing redirects
  • Feature flags routing users to different pages

Code Examples

Next.js — temporary redirect
typescript
// next.config.ts
export default {
  async redirects() {
    return [
      {
        source: '/sale',
        destination: '/sale-2026',
        permanent: false, // 302
      },
    ];
  },
};

Quick Facts

Code302
CategoryRedirection
SpecRFC 9110
CommonYes

Relevant Headers

Location

The temporary URL

← Back to all status codes