Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

301 redirect vs 307 redirect

I am wondering about the difference between 301 and 307 redirects.

I am looking to generate backlinks through a home-brew url redirector, and I wish for any of the "link juice" or "page rank juice" to flow directly from the originating back page through to the final URL, but if one of the originating back pages goes bad, I'd like to be able to shut that link off by deleting the redirect link for that particular page. Make sense?

My understanding is that 301's are permanent meaning that google will see the 301 and update its cached URL as the final destination, regardless of whether I kill off that redirect at a later time.

If I use a 307, it won't cache the destination URL and will keep checking the redirect URL to see where the back link actually points to, and if I kill off the redirect link, Google will no longer assign that back link to the destination URL.

Is this a correct summary?

like image 449
BBagi Avatar asked Jan 23 '13 16:01

BBagi


People also ask

What is the difference between 301 302 and 307 redirect?

302s are often used to create temporary redirects, but, with the advent of HTTP 1.1, 307 has replaced it as a valid temporary redirect. While a 302 is a little vague, a 307 states precisely that the requested URL has been moved to a temporary location and will be back in a while.

What is a 307 redirect?

HTTP 307 Temporary Redirect redirect status response code indicates that the resource requested has been temporarily moved to the URL given by the Location headers. The method and the body of the original request are reused to perform the redirected request.

What are the 4 types of redirecting?

There are five types of redirects: 301, 302, 303, 307, and 308.

What is the difference between 301 and 308 redirect?

The main difference between the 301 and 308 redirects is that when a 308 redirect code is specified, the client must repeat the exact same request (POST or GET) on the target location. For 301 redirect, the client may not necessarily follow the exact same request.


1 Answers

It's correct. Actually 307 is variation of the more common 302 redirect

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

307 Temporary Redirect (since HTTP/1.1)
In this case, the request should be repeated with another URI;
however, future requests should still use the original URI.
like image 194
Maxim Krizhanovsky Avatar answered Oct 09 '22 20:10

Maxim Krizhanovsky