是否有任何理由使用HTTP 410 GONE状态代码? [英] Is there any reason to use the HTTP 410 GONE status code?

查看:127
本文介绍了是否有任何理由使用HTTP 410 GONE状态代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从网站上永久删除页面时,为URL设置"410 GONE" HTTP响应(相对于它为404)有什么实际好处?

解决方案

是的,410 Gone HTTP状态代码表示所请求的资源过去曾经可用,但是现在已经淘汰或废弃. >

404 Not Found HTTP状态代码可能表示该网站已被错误地更新,从而丢失了通常在此处定义的文件.这也可能意味着发出请求的客户端引用了一个从不存在并且可能永远不会存在的资源.

410 Gone状态可能会立即对SEO产生影响,因为它告诉搜索引擎已故意删除了丢失的资源.与404 Not Found状态相比,这样应该可以加速减少对该页面的将来搜索引用.

When permanently removing a page from your website, are there any practical benefits to setting up a "410 GONE" HTTP response for the URL (vs. letting it 404)?

解决方案

Yes, the 410 Gone HTTP status code conveys that the resource requested was once available in the past, but it has now been retired or made obsolete.

The 404 Not Found HTTP status code could imply that the website has been incorrectly updated so as to be missing a file that would normally be defined there. It could also mean that the requesting client referenced a resource that never did exist and probably never will.

The 410 Gone status can have more immediate SEO implications because it tells search engines that the missing resource was intentionally removed. That should hasten the reduction of future search references to that page more so than the 404 Not Found status.

这篇关于是否有任何理由使用HTTP 410 GONE状态代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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