Use a permanent redirect for a lasting URL move and a temporary redirect when the original URL is expected to return.
Step by Step
- Decide whether the move is permanent or temporary.
- For a permanent move, use the platform's permanent redirect status, commonly 301 or 308.
- For a temporary move, use an appropriate temporary status, commonly 302 or 307.
- Preserve the destination path/query when required.
- Test the response and destination.
If That Doesn't Work
- Search engines and browsers can cache permanent redirects.
- Avoid chains of multiple redirects when one direct redirect will work.
