Redirects (3xx)

307 Temporary Redirect

The page is temporarily elsewhere, and the request is repeated exactly.

Last updated · View as Markdown

Quick answer

A 307 is a temporary redirect that keeps the request method the same. If you sent a form, it is sent to the new address unchanged. Browsers also show 307 internally when they force HTTPS for a site.

When to wait: No waiting needed.

If you are visiting the website

  1. Let the browser follow it No action is needed in most cases.
  2. Check the final address Make sure you landed on the right website.

If you run the website

  1. Keep it temporary If the move is permanent, switch to 308.
  2. Avoid chains Send visitors directly to the final address.

Worked example: a temporarily relocated endpoint

https://example.com/api/orders answers 307 with Location: https://example.com/api/v2/orders. A POST is repeated at the new address with the same method and body.

Chrome's developer tools can also show an internal 307 when HSTS upgrades an address to HTTPS, before an HTTP request leaves the machine.

307 against 302, and against 308

Choose 307 over 302 when the method must survive the hop. Choose 308 when the move is permanent rather than temporary.

An internal HSTS upgrade is generated by the browser rather than returned as a server response. If the HTTPS destination fails, its certificate or server configuration still needs investigation.

Verify the hop, then stop

Read the final address and its own status. A 307 that lands on a failing page is a destination problem, not a redirect problem.

A visitor who lands on an unfamiliar domain should stop, enter nothing, and reach the site operator through a known channel.

Likely causes

  • Sometimes The site temporarily moved a page or API. (Website side)
  • Common The browser upgraded the address to HTTPS on its own (HSTS). (Your side)

Is the website down? Check it now

One measurement point. Results explain what we saw, not a worldwide verdict.

Sources

Last updated: