Reachability

301 vs 302 vs 307 vs 308: redirects and POST requests

301 and 308 describe permanent moves; 302 and 307 describe temporary moves. For POST requests, method preservation is an additional distinction: 307 and 308 preserve method and body, while 301 and 302 permit POST-to-GET rewriting. A public GET trace cannot test your form submission.

Redirect status codes distinguish permanent moves, temporary moves and see-other responses.
Permanence and request-method handling are separate redirect decisions.

Compare permanence and method behavior

Use HTTP Status Codes to read a code and Redirect Checker to inspect public GET hops. Select the redirect according to both resource intent and request semantics, rather than assuming a higher number is better.

303 directs the client to retrieve a different resource, normally with GET after a POST; HEAD remains HEAD. This is useful for a form that creates a result resource. It is different from replaying the same POST body at a new endpoint.

Redirect semantics
CodeMovePOST behavior
301PermanentClient may change POST to GET
302TemporaryClient may change POST to GET
303See another resourceRetrieve result with GET
307TemporaryPreserve method and body
308PermanentPreserve method and body

Trace a synthetic form request

Suppose POST /orders submits a purchase. A 303 to /orders/example-confirmation tells the client to retrieve a result page. A 307 to /orders/new-endpoint instead requires the redirected request to remain a POST with the original body.

The following request sequence is illustrative. The local verification for this guide used Node fetch against a loopback HTTP server: POST became GET for 301, 302 and 303, while 307 and 308 retained POST and the synthetic body. Test your own HTTP client too because redirect settings and credential policies can differ. Do not send a real order during a redirect experiment.

Illustrative request:
POST /orders
Content-Type: application/json

{"item":"test-only"}

303 Location: /orders/example-confirmation
→ client retrieves the result with GET

307 Location: /orders/new-endpoint
→ client repeats POST and its body

Verify the migration or application workflow

Use a permanent status for a lasting page move and a temporary status when the original location is expected to return. Permanent redirects can be cached, so verify the destination before shipping the rule.

If generating an Apache 301 or 302 rule, htaccess Redirect Generator can produce one snippet. It does not inspect your existing configuration or create 307/308 behavior for you.

Retest from the original URL to the intended final page and inspect the final status. PageUtil sends GET and does not replay POST bodies, browser cookies or application authorization. For forms and APIs, add an integration test that asserts the destination method, body and response.

References

Use the linked specifications and product documentation to check behavior in your own environment.

Continue troubleshooting

Related tools

Frequently asked questions

Do 307 and 308 preserve POST bodies?

Yes. Their redirect semantics preserve the request method and body.

Is a 302 automatically an SEO mistake?

No. It is appropriate when the move is temporary and matches the resource’s intent.

Does PageUtil test POST redirect behavior?

No. Redirect Checker follows public GET requests, so test form and API semantics separately.

Need help with a tool or found a bug?

Report an issue directly to engineering. No accounts required — all client data remains private on your device.

Report an Issue →