SEO - 可能与 301 永久移动相关的问题
是的,故事是这样的:
我们的一个品牌的网站已经很多年了,网站设计非常糟糕,最近做了一次彻底的检修,主要是设计,但也包括一些后端代码。
原始网站使用诸如 example.com/products/item/127
之类的链接,因此我想将它们更改为移动用户友好的,特别是包含产品名称,相同的链接现在显示example.com/product/127/my-jucy-product/
。
自从我们进行切换以来,我们发现我们的 Google 结果受到了打击(我们的正常搜索词位于第一页,现在我们已经接近第四页了!)。我们遇到的另一个问题是,尽管我编写了从旧产品到新产品的 301 重定向,但旧产品的链接尚未更新为新链接。 301 不是从 .htaccess
触发,而是在我们的 PHP 框架中触发。
我查看了如何从仍在 Google 中的旧链接加载该网站,这就是 firebug 报告的内容:
GET <google link> 302 Found
GET example.com/products/item/127 302 Found
GET example.com/products/item/127 301 Moved Permanently
GET example.com/product/127/my-jucy-product/ 302 Found
所以 Google 链接有一个 302,很好。但是当旧链接进入我们的框架时返回 302!只有当它最终到达框架的正确部分时才会出现 301,所以这是我的问题:
我们的旧链接没有改变并且我们的 Google 排名大幅下降的原因是因为 Google 在 302 之前看到了 302 301?
当时我不愿意搞乱我们的.htaccess
,因为它已经变得非常复杂,而且我受到了一些相当紧张的时间限制,现在我想知道这是否是一个错误的决定,也许我应该重新审视它。
非常感谢!
编辑
混蛋,刚刚注册了网站管理员工具,我到处都收到了重定向错误,有数百个!我认为这是我的问题。
编辑2 因此,经过仔细检查,似乎是因为我很懒,没有使用 .htaccess
来重定向我的 URL,我想避免这样做,因为当时抛出一个 PHP 更容易标头,无论我现在已经开始将我们的框架转换为更多地依赖 .htaccess
,这不仅解决了问题(好吧,当我进行谷歌抓取时我们会看到),而且它还速度显着提高!
Right, here's the story:
We have had a website for one of our brands now for many years, the site design was very bad and recently did a complete overhaul, mostly design, but also some of the backend code.
The original site was using links such as this example.com/products/item/127
and thus I wanted to change them to be move user friendly, especially to include the product name, the same link now reads example.com/product/127/my-jucy-product/
.
Since our switch over we have seen our Google results take a beating (we were on the first page for our normal search terms, now we're nearer the 4th!). The other problem we're having is that the links to the old products haven't updated to the new links despite me coding a 301 redirect from old to new. The 301 is not being fired from .htaccess
, but in our PHP framework.
I had a look at how the site is being loaded from a old link that is still in Google and here's what firebug is reporting:
GET <google link> 302 Found
GET example.com/products/item/127 302 Found
GET example.com/products/item/127 301 Moved Permanently
GET example.com/product/127/my-jucy-product/ 302 Found
So the Google link has a 302, good. But when the old link comes in our framework is returning a 302! It's only afterwards when it finally hits the right part of the framework does it 301, so here's my question:
Is the reason our old links have not changed and our Google Ranking has significantly nose dived because Google is seeing a 302 before the 301?
At the time I was reluctant to mess with our .htaccess
because it had become pretty complicated and I was under some pretty intense time constraints, now I'm wondering whether this was an incorrect disicion and perhaps I should revisit it.
Many thanks!
Edit
Bugger, just signed up to the Webmaster Tools and I'm getting redirect errors all over the place, hundreds of them! I think this is my problem.
Edit 2
So on closer inspection it looks as if it is because I was being lazy and not using .htaccess
to redirect my URLs, I wanted to avoid doing this as it was easier at the time just to throw a PHP header, regardless I have now started convert our framework to depend more on the .htaccess
, not only has this solved the problem (well, we'll see when I get a google crawl) but it has also improved the speed dramatically!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
需要注意的一件事是规范链接(SO 就是这样做的)。这意味着您不需要进行重定向,旧链接仍然有效,搜索引擎也会相应更新。
http://googlewebmastercentral.blogspot.com/2009/02/specify- your-canonical.html
One thing to look at is canonical links (which is how SO does it). This means you don't need to do redirects, old links will still work and search engines will get updated accordingly.
http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
目前尚不清楚 Google 将如何每天调整其 PageRank 巫术,但一般来说,您应该预期在对旧网址进行大规模 301 重定向后,PR 会出现(暂时)下降。通常只需要一点时间(一个月,也许两个月)就能让事情渗透出去。
请注意,这并不能回答您关于 302 是否伤害您的问题。只是指出,即使它没有伤害您,您仍然应该看到仅基于大规模 301 重定向的 PR 暂时下降。
There's no telling how Google will adjust its PageRank witch's brew on a day to day basis, but in general, you should expect to see a (temporary) drop in PR following a mass 301 redirect of legacy URLs. It often just takes a little time (a month, maybe two) for things to percolate.
Note this does not answer your question about whether the 302 is hurting you. Just pointing out that, even if it's not hurting you, you should still see a drop in PR temporarily, on the basis of the mass 301 redirect alone.
我认为除了谷歌之外没有人可以百分百自信地回答你的问题。
302 临时重定向很可能会阻止 Google 将旧链接更新为新链接,这种情况可能会影响页面排名。
我首先要确保所有旧页面都可以访问并立即使用 301 进行重定向。
I think noone except of google can answer your question with 100% confidence.
302 temporary redirect most probably prevents google to update the old link to new one and this situation COULD have effect on page ranks.
I'd first of make sure that all old pages are accessible and redirected immediately with 301.