The Backstory -我从来没有真正相信谷歌的声明,302重定向不再失去PageRank, a story that made quite the buzz back in the summer of 2016. Here is the tweet from Gary Illyes:
30x redirects don’t lose PageRank anymore.
— Gary “鯨理” Illyes (@methode) July 26, 2016
So, I decided to test it. 在接下来的几个星期里,我发现的不是我所期望的,也不是我(秘密地)希望的.
Conducting the 302 Redirect Test
On August 31st, 2017, 我决定在我的吉他装备博客上做一个小实验, Six String Soul. Due to time constraints and monetization challenges, 近年来,这个网站更像是一个“试验场”. 几年前(2003年),我创建了一个吉他齿轮制造商目录, 该目录已经有相当数量的自然搜索引擎流量来找它.
所有目录页都嵌套在一个子页下, 所以我也可以很容易地改变URL结构(通过简单地改变父页面段),以及实现子目录级302重定向 .htaccess file. Thus, this test was easily feasible. It essentially launched in a matter of minutes.
我没有意识到的是(直到写这篇文章的时候)我的重定向规则实际上创建了一个重定向链.
# 302 SEO TEST RedirectMatch 302 /guitar-equipment/(.*)$ /guitar-gear/$1
有人可能会认为这可能会导致自然搜索流量的下降. Did it? Let’s find out.
谷歌有机搜索流量:实施302重定向前1周
For perspective, exactly one week prior to launching the test, “/guitar-equipment/”子目录中所有url的自然搜索流量(来自Google)比前一周增长了15%.
这一增长略高于测试发布前一个月的增长. 来自谷歌的自然搜索流量比前一个月增长了4%.
谷歌有机搜索流量:1周后实施302重定向
我们看到来自Google的自然搜索流量继续增加到新/guitar-gear/子目录下的url. 自然搜索流量比前一周又增加了约9%.
谷歌有机搜索流量:1个月后实施302重定向
Surprise! Organic search traffic from Google continued growing, 并且现在比前一个月高出17%(到new /guitar-gear/子目录中的url). For clarity, I don’t think the 302 redirects were causing this growth, but they certainly didn’t appear to be causing a decline.
谷歌有机搜索流量:实施302重定向后的3个月
The growth slows, however, 来自Google的自然搜索流量仍然上升了4%(到new /guitar-gear/子目录下的url).
Indexation Trends with 302 Redirects
9月8日,我在谷歌上截取了新的/guitar-gear/子目录索引的截图. I wish that I would have done it sooner! Sorry. 新/guitar-gear/子目录中的所有16个url都被索引了.
A little over three months later, (old) /guitar-equipment/子目录不在Google的搜索结果中(据我所知也不在索引中)。. 再一次,我希望能早点截图,但我似乎记得这并没有花很长时间. 曾经有一段时间(可能是1-2周)两个子目录同时被索引, 但是(旧的)/guitar-equipment/子目录最终从Google的搜索结果中消失了, its index).
For full transparency, here are the omitted results. No real pages from the (old) /guitar-equipment/ subdirectory.
Common Questions & Takeaways
So what can we learn from this? 以下是我对302重定向的一些常见问题的总结.
- Can Google Index a 302 Redirect? Yes. 显然,Google索引了302重定向产生的所有新目的地url. This should be obvious in situations like my test, however, since Google can crawl and discover the new URLs on the site. 如果url除了302重定向之外没有内部或外部链接怎么办? That will require a new test.
- Does Google Penalize 302 Redirect? No, not that I’m aware of. 为什么谷歌会因为一个网站使用了一个完全可以接受的重定向指令而惩罚它呢?
- Should You Use 301 Redirect or 302 Redirect? I still suggest using 301 redirects for permanent redirects, and 302 redirects for redirects that are truly temporary.
- What About Redirect Chains? As mentioned, 我的测试(无意中)包含了一个重定向链,有机搜索流量或索引没有明显的损失. This makes things a bit more interesting, 因为它还表明,重定向序列中单个额外的“跳”不会产生负面影响(至少在本测试的上下文中不会)。.
- Does a 302 Redirect pass PageRank as Google stated? See below.
The Verdict: Yes. 302 Redirects Pass PageRank
我的结论是,加里·伊利斯和约翰·穆勒(2016年夏天)所说的与我所看到的是一致的. 302 redirects pass page rank. If they didn’t, 那么我预计一定程度上(谷歌)自然搜索流量的下降(更多是由于外部链接而不是网站的内部链接图表), which did not change). “old /guitar-equipment/”子目录下的页面多年来建立了链接, 谷歌已经用新的/guitar-gear/子目录取代了这个旧的子目录.
这是否表明谷歌正在将外部链接权益应用于新的子目录, regardless of the 302 redirect?
Change can be hard, SEO顾问已经接受了多年的培训,在URL地址永久改变的情况下,302重定向是“坏的”,301重定向是“好的”(比如在网站迁移中)。. 有时我们在搜索引擎优化工作中看到的结果与谷歌所说的相矛盾, 不知道该相信什么,不该相信什么. But, in the case of 302 redirects passing PageRank, it seems apparent that Google’s statements are true.
What have you seen in your own tests and client scenarios?