301 And 302 Redirect?

5 replies
  • SEO
  • |
Hello....
Can anybody tell me what is the difference betwwen 301 and 302 redirect?How we do this and for what?
Thnx...
#301 #302 #redirect
  • Profile picture of the author onlineworkv
    301 redirect code permanent moved the page and 302 temporarily moved the page.
    {{ DiscussionBoard.errors[6804968].message }}
    • Profile picture of the author Cram
      Here is your answer from wikipedia
      List of HTTP status codes - Wikipedia, the free encyclopedia


      3xx Redirection

      The client must take additional action to complete the request.[2]
      This class of status code indicates that further action needs to be taken by the user agent in order to fulfil the request. The action required may be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. A user agent should not automatically redirect a request more than five times, since such redirections usually indicate an infinite loop.

      300 Multiple Choices
      Indicates multiple options for the resource that the client may follow. It, for instance, could be used to present different format options for video, list files with different extensions, or word sense disambiguation.[2]

      301 Moved Permanently
      This and all future requests should be directed to the given URI.[2]

      302 Found
      This is an example of industry practice contradicting the standard.[2] The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"),[6] but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.[7] However, some Web applications and frameworks use the 302 status code as if it were the 303.[8][citation needed]

      303 See Other (since HTTP/1.1)
      The response to the request can be found under another URI using a GET method. When received in response to a POST (or PUT/DELETE), it should be assumed that the server has received the data and the redirect should be issued with a separate GET message.[2]

      304 Not Modified
      Indicates the resource has not been modified since last requested.[2] Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. Using this saves bandwidth and reprocessing on both the server and client, as only the header data must be sent and received in comparison to the entirety of the page being re-processed by the server, then sent again using more bandwidth of the server and client.

      305 Use Proxy (since HTTP/1.1)
      Many HTTP clients (such as Mozilla[9] and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.[2]

      306 Switch Proxy
      No longer used.[2] Originally meant "Subsequent requests should use the specified proxy."[10]

      307 Temporary Redirect (since HTTP/1.1)
      In this case, the request should be repeated with another URI; however, future requests can still use the original URI.[2] In contrast to how 302 was historically implemented, the request method should not be changed when reissuing the original request. For instance, a POST request must be repeated using another POST request.

      308 Permanent Redirect (experimental Internet-Draft)[11]
      The request, and all future requests should be repeated using another URI. 307 and 308 (as proposed) parallel the behaviours of 302 and 301, but do not allow the HTTP method to change. So, for example, submitting a form to a permanently redirected resource may continue smoothly.
      {{ DiscussionBoard.errors[6804994].message }}
  • Profile picture of the author danielthomas
    301 redirect is moving page from one location to another location permanently along with page rank credit, back link credit and page authority. 302 is temporary redirect which will not pass link juice or back link value.
    {{ DiscussionBoard.errors[6805157].message }}
  • Profile picture of the author siyajoshi
    Thanx Cram for providing such info...
    {{ DiscussionBoard.errors[6811784].message }}
  • Profile picture of the author Stuart william
    "301: Permanent redirection, google will pass link juice, backlinks and credibility to the new page 302: temporary redirection"
    {{ DiscussionBoard.errors[6818617].message }}

Trending Topics