Page or site moved for good, mostly GET traffic
- Send
- 301
The five HTTP redirect codes differ on two things: permanent or temporary, and whether the request method is kept. Pick the right one with this table and config.
HTTP redirect codes are the 3xx responses that tell a client to fetch a different URL. Use 301 for a permanent move and 302 for a temporary one, where changing POST to GET is acceptable. Use 308 and 307 for the same two cases when the method must not change. Use 303 to send a POST's result to a page fetched with GET.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
RFC 9110 groups the 3xx class into several kinds of redirect. The ones that say a resource might be available at a different URI, given in the Location header, are 301, 302, 307 and 308. 303 redirects to a different resource that can represent an indirect response. 300 offers a choice among representations, and 304 points to a previously stored result. For moving a page, you choose among 301, 302, 307 and 308, and for the response to a form submission you often want 303.
| Code | Name | Permanent? | Method | Use it for |
|---|---|---|---|---|
| 301 | Moved Permanently | Yes | A client may change POST to GET | Moving a page or site for good |
| 302 | Found | No | A client may change POST to GET | A temporary move where method change is fine |
| 303 | See Other | No | Follow-up is a GET or HEAD | Sending the user to a result page after a POST |
| 307 | Temporary Redirect | No | Must not change | A temporary move that keeps POST as POST |
| 308 | Permanent Redirect | Yes | Method preserved | A permanent move that keeps POST as POST |
The method column is where the codes really differ. RFC 9110 explains the history: 301 and 302 were originally method-preserving, but early user agents split on whether to redirect POST as POST or as GET, and "prevailing practice eventually converged on changing the method to GET." 307 and 308 were added to "unambiguously indicate method-preserving redirects". RFC 9110 also notes that 308 is younger than its siblings and "might not be recognized everywhere."
Reach for 307 and 308 when the request is a POST, PUT or DELETE that must keep its method at the new URL, which means APIs and form endpoints. RFC 9110 says user agents may change POST to GET after a 301 or 302.
return directive takes a code and a URL, and its documentation says a redirect URL is accepted for the codes 301, 302, 303, 307 and 308. It also notes that nginx did not treat 308 as a redirect until version 1.13.0.Apache's Redirect directive in mod_alias sends a temporary 302 when you give no status, and accepts permanent for 301. The Apache docs also say additional path information is appended to the target, and that "POSTs will be discarded" by this directive. It also accepts a numeric status, so a method-preserving redirect is possible, as in Redirect 308.
Redirect permanent "/old-page" "https://example.com/new-page"
Redirect "/temp" "https://example.com/elsewhere"server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}
location = /api/v1/orders {
return 308 /api/v2/orders;
}
location = /sale {
return 302 /spring-sale;
}A to B to C wastes a round trip and risks loops. Point each old URL straight at the final one. See redirect chains and redirect loops.
A 302 that stays for years sends a temporary signal. See temporary redirects.
A browser CORS request that gets redirected to another origin fails. See Cross-Origin Request Blocked.
RFC 9110 says that when following a redirect, a client should remove resource-specific header fields, including Referer, Origin, Authorization and Cookie, so don't count on them surviving a redirect.
4 questions people ask next, answered from the sources on this page.
Both mean a permanent move. With 301 a client may change POST to GET for the next request. 308 requires the method to be preserved, but RFC 9110 says it might not be recognized everywhere.
302 Found says the resource temporarily resides at a different URI given in Location. A client may change a POST to GET on the redirected request, and 307 is the alternative when it must not.
Use 307 for a temporary move or 308 for a permanent one when the method must be preserved. Use 303 when you want the client to fetch a result page with GET.
A meta refresh is the HTML option. Google treats a 0-second meta refresh as permanent and a longer delay as temporary, but prefers server-side redirects when you can set them.
Run the free audit, then approve the fixes. Every change can be undone.