Skip to the content
Start free

307 Temporary Redirect

307 Temporary Redirect is an HTTP status code that sends a visitor to a different address for now, while telling them the original address is still the right one, and the request must be repeated in exactly the same form. A form sent with POST stays a POST, with the same data, at the new address.

What is a 307 redirect? #

A redirect is a reply that says “not here, try there”. The server gives a status code from the 300 group and a Location header with the new address. The HTTP standard, RFC 9110, says that with 307 the target is for the moment at a different address, and the user agent must not change the request method if it follows the redirect itself. The server should include a Location header with that address.

That last rule is the whole reason 307 exists. Older browsers often turned a POST into a GET when they followed a 302, so the data in the form was lost. RFC 9110 now allows a POST to become a GET for 301 and 302. MDN’s guide to redirections says 307 was created to remove that doubt for methods other than GET.

How is it different from 301, 302, 303 and 308? #

Code Lasts Method and body on the next request Typical use
301 Moved Permanently For good GET stays GET; others may become GET A page has a new home
308 Permanent Redirect For good Kept exactly A move where forms or API calls post to the old address
302 Found For now GET stays GET; others may become GET A short detour
303 See Other For now Always becomes GET; body dropped After a form is sent, show a thank-you page
307 Temporary Redirect For now Kept exactly A short detour where non-GET requests happen

MDN’s 307 page adds a simple point: for an ordinary GET request, 307 and 302 behave the same. For most page visits the choice between them makes no visible difference. Our 301 vs 302 redirect page covers the permanent versus temporary choice in more depth.

Search engines read “temporary” as “keep the old address”. Google’s guide to HTTP status codes and Google Search lists 307 as equal to 302. Google follows it but treats it as a weak signal that the target should be processed. 301 and 308 are a strong signal.

Google’s page on redirects and Google Search spells out the result. With a permanent redirect, Google shows the new target in search results and uses the redirect as a sign the target should be the canonical. With a temporary one, it shows the source page, and the redirect is not used as a canonical signal, though the target may still be indexed if other signals point to it. So a 307 that stays in place for months can keep the wrong address in results. If the move is for good, Google recommends a permanent server-side redirect.

Why does it matter for AI answers? #

AI tools follow redirects too. A live fetcher such as ChatGPT-User may land on the target, while the address it quotes back to a person depends on how that product handles redirects. Nobody has published those rules in full. What you control is clarity: if a page has moved for good, say so with 301 or 308 so every crawler, search or AI, gets the same message. If the detour is short, a 307 keeps the original as the address that should be cited.

When should I use a 307? #

  • A short outage. MDN describes the use case as a page that is temporarily unavailable for reasons nobody planned for.
  • Forms and APIs. If people or apps send POST, PUT or DELETE requests to an address that must point elsewhere for a while, 307 keeps their data intact.
  • A test. Sending some traffic to a new page during an A/B test, then removing the redirect.
  • Not for a site move. When you move a website or change a URL slug, use 301 or 308.

Common mistakes #

  • A “temporary” redirect left for years. Google keeps treating the old address as the one to show. Change it to 301 once you know the move is final.
  • Chains. 307 to 301 to 302 wastes crawler time and slows people. See redirect chain.
  • Loops. A sends to B and B sends back to A. MDN says browsers detect this and show an error; the page is never reached.
  • Using 307 for HTTP to HTTPS forever. A permanent move to HTTPS deserves a permanent code. Browsers that have seen a Strict-Transport-Security header switch to https by themselves before the request is sent, MDN explains, so they need no redirect at all.
  • Links still pointing at the old address. Update your internal links so visitors and bots skip the hop.
  • Blaming the code for lost rankings. A temporary redirect does not punish a site. It simply tells search engines not to swap the address.

A worked example #

A ticket seller runs its booking form at /book/. One evening the booking system fails. The team points /book/ to a backup at /book-backup/ while it is fixed.

Code used What happens to a customer pressing “Pay” What search engines do
302 An older client may resend as GET; the booking details are lost Keep /book/
307 The POST and its data go to /book-backup/ intact Keep /book/
301 Data may be lost, and the backup is announced as the new home May start showing /book-backup/

307 is the right fit. Next morning the redirect comes off and /book/ answers 200 again.

How to check it #

  1. Run the address through our Redirect Checker. It shows each hop and its status code. The how-to guide explains the result.
  2. Read the raw reply with our HTTP Header Checker: look for the status line and the Location header.
  3. Build the right server rule with our redirect generator, and plan a full set of old and new addresses with the redirect mapper.
  4. Find links that point at redirecting pages with the Broken Link Checker, then fix them at the source.
  5. Make sure the final page can be indexed. See page with redirect in Google Search Console, and use URL Inspection on single addresses.
  6. Check that your XML sitemap lists only final addresses, not ones that redirect, with our Sitemap Checker.
  7. In URSY Pro, the Redirect monitor and Links to redirects fixer watch this over time, opening in stages.

Questions #

Google treats it as a weak signal and keeps showing the original address. If you want the new address to take over, use a permanent code.

Is 307 better than 302? #

Only when requests other than GET are involved. For normal page views they behave the same.

Can I set a 307 with a meta refresh or JavaScript? #

No. 307 is an HTTP status code, so it must come from the server. MDN says HTTP redirects run first, before any JavaScript or meta redirect.

How long can a 307 stay? #

No rule sets a limit. If it is still there after the problem is fixed, it is no longer temporary, so remove it or make it permanent.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: 307 Temporary Redirect. URSY. Updated 24 November 2026. https://ursy.com/wiki/307-temporary-redirect/ · Section links

Tools for this

All 871 wiki entries, A to Z →