Use friendly 301 Redirects when changing websites structure
Change the 302 Redirect to a 301 Redirect, because 302 Redirects are not SEO-
friendly and pass no link juice.
You should use a SEO-friendly server-side 301 Moved Permanently redirect if you change your website's URL structure and a web page you remove has a suitable alternative page on your web site.
301 redirects are particularly useful if:
- You moved your site to a new domain, and you want to make the transition as seamless as possible.
- You're merging two websites and want to make sure that links to outdated URLs are redirected to the correct pages.
A 301 Moved Permanently redirect means that a requested resource has been moved permanently to a new URL and any future references to this resource should use one of the returned URLs. Google recommends using a 301 redirect to change the URL of a page as it is shown in search engine results.
To implement a 301 redirect for websites that are hosted on servers running Apache, you'll need access to your server's .htaccess file. (If you're not sure about your access or your server software, check with your webhoster.) For more information, consult the Apache .htaccess Tutorial and the Apache URL Rewriting Guide. If your site is hosted on a server running other software, check with your hosting service for more details.