
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.
| Code | Move | POST behavior |
|---|---|---|
| 301 | Permanent | Client may change POST to GET |
| 302 | Temporary | Client may change POST to GET |
| 303 | See another resource | Retrieve result with GET |
| 307 | Temporary | Preserve method and body |
| 308 | Permanent | Preserve 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 bodyVerify 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.