A redirect sends users from one URL to another.
301 (Permanent)
Page moved forever. Google transfers SEO weight from old to new URL.
302 (Found / Temporary)
Temporary. No transfer — Google remembers both URLs.
When to use what
- Site restructure — 301
- Domain change — 301
- Temporary promo — 302
- A/B test — 302
In .htaccess
Redirect 301 /old-url /new-url