HTTP重定向:301(永久)与302(临时) [英] HTTP redirect: 301 (permanent) vs. 302 (temporary)
本文介绍了HTTP重定向:301(永久)与302(临时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
客户端应该采取不同的行为吗?如何?
Is the client supposed to behave differently? How?
推荐答案
状态301表示资源(页面)永久移动到新位置。客户端/浏览器不应尝试请求原始位置,而是从现在开始使用新位置。
Status 301 means that the resource (page) is moved permanently to a new location. The client/browser should not attempt to request the original location but use the new location from now on.
状态302表示资源暂时位于其他位置,并且客户端/浏览器应继续请求原始URL。
Status 302 means that the resource is temporarily located somewhere else, and the client/browser should continue requesting the original url.
这篇关于HTTP重定向:301(永久)与302(临时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文