What is a 301 redirect and when to use it?
A 301 redirect is used when any page has been permanently moved to another location.
Users will now see the new URL as it has replaced the old page.
The 301s should be used when
you change the domain name of your website
you purchase additional domains that you want redirected to the primary domain
links to any outdated URLs need to be sent to your desired page
you perform a http to https migration
you establish which domain is your default site: www.example.com or just example.com
A 302 redirect is like sending a change of address form to your local post office when you move.
In general, if you know the change is going to be permanent, you should use a 301.
If you want to pass page rank to your new URL, use a 301.