302 redirect
A 302 redirect is a temporary redirection of a Web page to another URL. When a user or search engine visits a page that has a 302 redirect, it is automatically redirected to another page. This type of redirect indicates that the original URL will be available again in the future. 302 redirects are often used for maintenance, temporary promotions or testing new content without permanently changing the original page.
How does a 302 redirect work?
When a server receives a 302 status code, it informs search engines and browsers that the relocated page is temporary. Therefore, the original URL remains in search results and retains its SEO value. The user's browser automatically loads the new URL, while the original link remains active in search engine indexes. This makes a 302 redirect suitable for situations where a Web site owner wants to use the original page again at short notice.
Difference 301 and 302 redirect
Unlike a 302 redirect, a 301 redirect is permanent. It should be used when a page is permanently moved, such as after a Web site restructuring. A 301 redirect transfers all SEO value to the new page, while a 302 redirect does not. It is important to choose the right type of redirect to optimize user experience and search engine performance.