Redirect rules
Generated redirect config
Which status code to use
301 is a permanent move (use when the change is final). 302 is a temporary move. 307 and 308 are permanent/temporary versions that preserve the request method — important for API routes (for example 308 after a POST-to-GET migration). Next.js redirects() only distinguishes permanent (true) from temporary, so 301/308 map to permanent and 302/307 map to temporary. Tick "Wildcard / pattern" on a rule to emit RedirectMatch (Apache) and a location ~ … regex block (Nginx) instead of the exact-match forms; a * in the old path becomes a capture group.