301, 302, 307 and 308 redirects: choosing the right status

Choose redirect permanence and request-method behavior deliberately. Learn which tests catch unsafe POST redirects, cached migrations and incorrect destinations.

Choosing a redirect status means answering two independent questions. Is the resource moving permanently or temporarily? Must the next request preserve the original method and body? Looking only at the first question can produce a redirect that is acceptable for an ordinary page visit but dangerous for a form submission or API request. Looking only at search-engine preferences can overlook the actual application contract.

For most technical SEO investigations, the starting request is a GET. That is a useful and deliberately narrow test. It cannot establish what happens when a user submits a payment form, uploads a document or sends a POST to an old API endpoint. Treat a page-checking report as evidence about the request it made, not as certification of every possible interaction with the URL.

Start with permanence and method preservation

A 301 describes a permanent move. A 302 describes a temporary location. Historical client behavior means that these responses can turn an original POST into a GET when the redirect is followed. A 307 is temporary and preserves the method and request body. A 308 is permanent and also preserves them. These distinctions come from HTTP semantics, not from a scoring convention invented by an SEO tool.

Preserving a method is not automatically safer in every situation. Forwarding a sensitive body to a different origin can be inappropriate even if the protocol permits a redirect. Conversely, changing a write request into a GET can silently discard the submitted data. Decide the intended behavior with the application owner and test it using non-sensitive synthetic data on a controlled environment.

The Location header identifies the next address. The status does not tell you whether that address is correct, indexable, secure or related to the original content. Those are separate checks. A perfectly formed permanent redirect to the wrong product remains a broken migration.

Use permanent redirects for established moves

When a public page has genuinely moved to a stable replacement, a permanent redirect is usually appropriate. Examples include an intentional path rename, a consolidated duplicate hostname or a completed HTTPS migration. Choose the replacement by content equivalence and user purpose rather than by which URL is easiest to configure.

Search systems use permanent redirects as a strong signal about the preferred destination. That does not make a redirect an instruction that always wins immediately. Conflicting canonical elements, internal links and sitemaps can still complicate interpretation. Update those signals so that they all describe the same established URL rather than leaving the migration half-finished.

Be cautious when testing a permanent rule in a browser you also use for production work. Browsers and intermediaries may cache redirects according to their behavior and response headers. A configuration correction can appear ineffective when the client is still remembering the previous journey. Keep a command-line test and a clean browser context available during diagnosis.

Use temporary redirects for genuinely temporary routing

A temporary redirect is appropriate when the original URL remains the intended long-term address. A short maintenance flow or a temporary resource location can fit that description. A page that has permanently moved should not retain a temporary status merely because nobody revisited an early launch configuration.

Avoid simplistic claims that a temporary redirect can never affect indexing. Search systems interpret signals over time, and a long-lived redirect can be processed differently from the publisher's original intention. The operational rule is to communicate the real state clearly, then keep canonical and linking signals consistent with it.

Geographic routing, experiments and language selection deserve extra care. A crawler should be able to reach the alternate content without being forced into an inaccessible location based on its IP address or missing cookies. Test the underlying URLs directly. A temporary redirect is not a substitute for a deliberate international URL structure or correct alternate-language annotations.

Inspect the response without following it first

Start with the immediate response. If your tool follows redirects automatically, its final success status can conceal the actual redirect status and Location value. Record both the initial behavior and the complete journey. Use the following examples only with an address you are authorized to inspect.

curl -sS -D - -o /dev/null https://example.com/old-page
curl -sS -L -D - -o /dev/null --max-redirs 10 https://example.com/old-page

Check the status line, Location and relevant cache headers. A relative Location can be valid; resolve it against the current URL before deciding it is malformed. Spaces, unexpected encoding, lost query arguments or an accidental downgrade to HTTP deserve investigation. Repeat the request against the public edge, because the application server's response can differ from what a visitor actually receives.

When method behavior matters, use a staging endpoint that records the incoming method and a harmless body. Do not replay a real purchase, authentication exchange or webhook merely to test redirects. A copied curl command containing production credentials is not a safe diagnostic fixture.

Check your page for redirect status issues

Run a real URL audit and compare the evidence with this guide. Checks are subject to usage limits.

Coordinate edge, server and application rules

A common configuration problem is disagreement between layers. The edge redirects to one hostname, the application redirects back to another, and the browser alternates between them. Another is a trusted proxy setting that makes the application believe an HTTPS request arrived over HTTP, triggering repeated upgrades.

Find the layer responsible for each response before editing rules. An application route cannot prevent a response already generated at the CDN. Similarly, a server-level normalization rule can accidentally capture a location intended for an API or an asset. Prefer a narrowly scoped change supported by a test matrix over a broad rewrite whose effect is difficult to enumerate.

A schematic method-preserving permanent redirect looks like this:

HTTP/1.1 308 Permanent Redirect
Location: https://example.com/new-endpoint

The example demonstrates the response shape, not permission to redirect arbitrary write traffic. Review authentication, cross-origin behavior, request size and idempotency separately. If the original operation must not be repeated, redirect selection alone will not make a non-idempotent workflow reliable.

Check redirect behavior with URLTune

Use the redirect checker for a list of starting URLs and expected destinations. It helps expose wrong statuses, extra hops, loops and mismatches between the expected and observed final URL. Use a small representative sample first, then expand coverage to the rest of the migration inventory within the input limit.

Open a normal URL report when you also need to inspect the destination's canonical, metadata and indexing signals. A site crawl can identify internal links that still reference the old route. These are complementary views: the map checks known legacy entries, while the crawl follows links it can discover from the current site.

URL-quality diagnostics in an original URLTune fixture report.

The screenshot comes from an isolated test site and shows the report interface, not the result of a public-domain migration. URLTune's ordinary page checks do not exercise every POST body or authenticated application route. Use application integration tests for those contracts.

Define completion beyond a green status

For a completed migration, document the original address, intended permanence, observed response status, hop count and final destination. Verify that the final page returns the correct content and that important internal links now use it directly. Keep necessary legacy redirects for visitors who still arrive through bookmarks or external links.

Monitor the old paths after release and inspect unexpected traffic before deleting rules. A technically unnecessary redirect can still be serving real users. For the underlying semantics, consult RFC 9110 and Google's redirect documentation. Correct status selection communicates intent and protects request behavior; it is not a promise of an indexing deadline or a particular search position.

Check your page for redirect status issues

Run a real URL audit and compare the evidence with this guide. Checks are subject to usage limits.