SEO-301通过404页面重定向 [英] SEO - 301 redirect via 404 page

查看:328
本文介绍了SEO-301通过404页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此并不陌生,因此我将尝试清楚地说明自己.

I am new to this so I will try to explain myself clearly.

我正在从自定义404页面执行301重定向.现在我明白了,我的问题更多是关于Google如何对待它.因为我们要转到404页,Google只会将其记录为40页,还是会实际记录301?正如我所说的,我对此并不陌生,并且已经通过Google进行了尝试并找到了答案.

I am doing my 301 redirect from a custom 404 page. Now I got it working my question is more regarding how google would treat this. Cause we going to a 404 page would google just record it as a 40 page or would it actually record the 301? As i said I am new to this and have looked through google to try and find an answer to this.

无论如何,任何帮助或评论都将得到极大的帮助.预先感谢

Anyway any help or comment would be greatly appriciated. thanks in advance

推荐答案

在这种情况下,最佳实践可能是:

Best practice in this case could be:

  1. 如果该页面不存在,但是我们有一个内容非常相似的新页面,则可以进行301重定向,简单地说:永久移动",即指示Google实际使用新的URL并对其进行优先排序.

  1. If the page doesn't exist, but we have new one, with highly similar content, we can make 301 redirection, simply saying: "Moved permanently", which is instructing Google to actually take new URL on account and prioritize it.

如果该页面不存在,并且我们实际上不知道为什么有人可以键入此链接,因为该URL根本不存在并且是错误的,那么我们将提供404未找到".这仅表示URL错误,并且某人(或其他网站)欺骗您访问此链接.您不应该自动从此页面重定向用户,而应放置指向首页的链接,以便用户可以选择其操作.

If the page doesn't exist, and we actually have no idea why someone could type this link, as this URL never existed and is just wrong, then we serve 404 "Not Found". It simply means that the URL is wrong, and someone (or some other website) has fooled you to follow this link. You shouldn't automatically redirect user from this page, but place a link to the homepage instead, so user can choose his action.

如果该页面不存在,并且我们知道我们拥有此页面,但是它不存在,并且将来也将不存在(我们只是决定不再使用该页面拥有此页面),然后投放410已消失"页面,并提供指向首页的链接,并让用户自行决定.

If the page doesn't exist, and we know that we had this page, but it doesn't exist, and it will not exist in the future as well (we has simply decided that we will no longer have this page), then serve 410 "Gone" page, with a link to homepage as well, and let user decide.

HTTP代码不仅是一种理论,而且是我们应该使用的标准.我注意到,在没有正确的HTTP响应代码的情况下提供了许多404页面,这仅表明其背后的开发状况不佳.

HTTP codes, are not just a theory, it's a standard we should use. I noticed, that many 404 pages are served without correct HTTP response code, which only suggests that there is a poor development behind it.

更多有关HTTP响应代码的信息: http://www.w3.org /Protocols/rfc2616/rfc2616-sec10.html

More about HTTP response codes here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

这篇关于SEO-301通过404页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆