Why it matters
301and308say the address changed for good: RFC 9110 says that future references to the page ought to use the new address.302and307say the move is temporary, and that clients ought to keep using the original address;303sends the client elsewhere for this answer alone.- Google takes a permanent redirect (
301,308) as a strong signal that the new address should be canonical, and a temporary one (302,303,307) as a weak signal. A move made for good is best said with the strong one. - A move to HTTPS, or between
example.comandwww.example.com, is not meant to be undone: this rule looks at those moves alone. - A move of a page to another path may be for good (a renamed category, a product's new address) or for a while (a sale, a page under repair): only the site knows. Servers write
302when no status is named, so a move for good often goes out as a temporary one. The rule asks you to look at such a move, and never counts it as a failure. - A temporary redirect has its uses, such as sending visitors to their language's pages, to sign in, or to another page while one is down. The rule leaves those alone.
How to fix
Make the redirect permanent where the site sets it:
nginx
return 301 https://www.example.com$request_uri;- nginx:
return 301, or thepermanentflag ofrewrite. Itsredirectflag gives302. - Apache (mod_rewrite): write
[R=301,L]. TheRflag alone gives302. With mod_alias,Redirect permanentgives301. - Use
308rather than301where a form may be sent to the old address with POST:308keeps the method and the body.
How we detect
- We fetch the address you give as
ArablyzerBotand follow its redirects. The rule applies when there was one at least. - Each
302,303or307fails whose move only changes the scheme fromhttp:tohttps:, only changes the name betweenexample.comandwww.example.com, or both, keeping the port, the path and the query. - A
302or307from one page to another path of the same site asks for your review, and is never a failure: from a page that is not the site's root, to one that is not either, with no query on either side, neither into nor out of a language's or a country's path (/ar/,/en-us/), and not to a sign-in, account, cart, checkout, consent or maintenance page. - Other temporary moves pass: they are often meant.