What does HTTP/1.1 302 mean exactly?

后端 未结 14 2532
礼貌的吻别
礼貌的吻别 2020-12-02 05:49

Some article I read once said that it means jumping (from one URI to another), but I detected this \"302\" even when there was actually no jumping at all!

14条回答
  •  广开言路
    2020-12-02 05:58

    • The code 302 indicates a temporary redirection.
    • One of the most notable features that differentiate it from a 301 redirect is that, in the case of 302 redirects, the strength of the SEO is not transferred to a new URL.
    • This is because this redirection has been designed to be used when there is a need to redirect content to a page that will not be the definitive one. Thus, once the redirection is eliminated, the original page will not have lost its positioning in the Google search engine.

    EXAMPLE:- Although it is not very common that we find ourselves in need of a 302 redirect, this option can be very useful in some cases. These are the most frequent cases:

    • When we realize that there is some inappropriate content on a page. While we solve the problem, we can redirect the user to another page that may be of interest.
    • In the event that an attack on our website requires the restoration of any of the pages, this redirect can help us minimize the incidence.

    A redirect 302 is a code that tells visitors of a specific URL that the page has been moved temporarily, directing them directly to the new location.

    • In other words, redirect 302 is activated when Google robots or other search engines request to load a specific page. At that moment, thanks to this redirection, the server returns an automatic response indicating a new URL.

    • In this way errors and annoyances are avoided both to search engines and users, guaranteeing smooth navigation.

    For More details Refer this Article.

提交回复
热议问题