Forum Moderators: Robert Charlton & goodroi
Found out today that I was sending 302 instead of 301.
I think there is a bit of a misconception out there on 302s being bad for your web sites and being bad for your PageRank... In face, it is definitely not the case.
When we recognize a redirect and we see it is a 302, we assume it is a temporary redirect first and we assume you want the original URL indexed, not the redirected target. In general, that is one thing we like to do there.
However, when we recognize it is actually more like a permanent redirect and 302 is something that you may have accidentally set up, then we do treat that as a 301. We say, instead of indexing the redirected URL we redirection target. John Mueller
it doesn't say Google will treat them the same.
what it says is that "we assume it is a temporary redirect first" and "Google may decide that at some point" the "302 is something that you may have accidentally set up".
"we assume first" vs "may decide that at some point you may have accidentally..."
are you feeling lucky?
“Does it matter what style of redirects sites use, whether it is 301, 302 or 307? Will they all work appropriately in Google’s eyes and will they all pass PageRank?”
Illyes answer was short and succinct. “Don’t worry about it. Just use whatever you want, use whatever makes sense for you.”
“Don’t worry about it. Just use whatever you want, use whatever makes sense for you.”
aristotle Wrote:
This is slightly off-topic, but I recently checked an old list of outlinks from a "links page" on one of my sites, in order to update the links to those sites that have recently switched to https.
Checking with Zenu, I discovered that some of them are using 302s instead of 301s to re-direct from http to https.
In other words, whoever implemented the switch to https on those sites used a 302 for the redirect to https.
I don't understand why anyone would do this, unless they thought they might have to revert back to http. The other question is how does google treat this.
Then robzilla wrote:
I've seen that happen with redirects set up by certain control panels, where they default to 302, perhaps to be "safe", so it's probably (and unfortunately) quite common.
I believe Apache also defaults to 302.