What is the difference between a 301 and a 302 redirect?
| 301 | 302 |
|---|---|
| Moved permanently | Found, moved temporarily |
| Use for changed URLs, new domains, http to https | Use for short tests or temporary pages |
| Search engines replace the old URL with the new one | Search engines may keep the old URL |
Google can treat a long lasting 302 like a permanent redirect, but use the correct code from the start. See Redirection.
Learn more about the similar topics:
| Tutorials |
|---|
| SEO – Redirection |
| SEO – Custom 404 Page |
| Exercises & Assignments |
|---|
| Redirect old URLs to new URLs with .htaccess |
| Interview Questions & Answers |
|---|
| What is the difference between a 301 and a 302 redirect? |
| What is a 404 error and a soft 404? |
| How do you do a website migration without losing SEO? |