John answered that when it comes to redirects, if there’s a server-side redirect, where you can give Google a result code as quickly as possible, this is strongly preferred.
The reason why this is strongly preferred is just that it can be processed immediately.
Any request that goes to your server to one of those URLs, Google will see the redirect URL. They will see the link to the new location, then Google can follow that right away.
Then they will see “Oh, there’s actually a redirect there. And then they will go off and follow that.”
If at all possible, John recommends using a server-side redirect for any kind of redirect that you are doing on your website.
The meta refresh type of redirect is another option that you can use and this also takes a little bit longer.
The reason why it takes longer is because Google has to figure that out on the page. But server side redirects are great.
And there are different server side redirect types.
There’s 301 and 302. Then there are also 306, 307, 308. Essentially the differences are whether or not it’s a permanent redirect or a temporary redirect.
A permanent redirect tells Google that they should focus on the destination page. A temporary redirect tells Google they should focus on the current page that is redirecting, and keep going back to that one.
The difference between the 301, 302, and 307, John forgot what the other one was, is more of a technical difference regarding different types of server requests.
So, if you enter a URL in your browser, than you do a get request for that URL. Whereas if you send something to a form or use specific types of API requests, then that can be a post request.
The 301, 302 type redirect would only redirect the normal browser requests and not the forms and the API requests.
So if you have an API on your site that uses POST requests, or if you have forms where you suspect someone might be submitting something to a URL that you’re redirecting, then obviously you use the other types.
For the most part, however, you want to use a 301 or 302 redirect, and the differences there are very minimal.
This happens at approximately the 11:25 mark in the video.