301 redirects indicate a permanent change in URL, whereas 302 redirects are temporary fixes for when running a test or promotional activities.
With 301 and 302 redirects being identical in functionality, brands must select appropriate redirects while moving content, as choosing the wrong one can impact SEO. Brands can create 301 and 302 redirects by editing their website’s .htaccess file in the sites root directory.
To create a 301 redirect from one URL to another, brands must add “Redirect 301 /old-page.html /new-page.html” code their .htaccess file. For creating 302 redirects use “Redirect 302 /old-page.html /new-page.html” code. Alternatively, brands use can tools like RankMath for redirects.
Businesses must ensure their 301 and 302 redirects are accurate before Google indexes new-page.html and deindex old-page.html. Using Link signals can help forward the 301 redirects to new URLs, and backwards 302 redirects old URLs.
[11 minute read]