|
Types of redirects (301 and 302) and their relationship with SEO There are two main ways to redirect: Here, I will explain it while touching on its relationship with SEO . 301 redirect 302 redirect Transfer period permanent temporary Usage scenario example Transfer from to (always SSL) Unification of URLs with and without www Sorting between PC and smartphone sites Change page URL Change domain Direction to maintenance page search results The destination page will be displayed. The transfer source page is displayed. page rank no loss no loss memo Numbers such as "301" and "302" are a type of "HTTP status code" that indicates the server's response (processing result) when a page is accessed. Relationship between client and web server Now, I will explain the difference between 301 redirect and 302 redirect. Transfer period and example usage scenarios A 301 redirect is a permanent forwarding process. In other words, use it when there is no possibility of using the source URL.
For example, the scene below basically uses the "regular version" as the destination, so the source URL is not used. Examples of usage scenarios for 301 redirects Transfer from to (always SSL) Unification of URLs with and without www Change page URL Change domain A 302 redirect, on the other hand, is a temporary redirect. Used when reusing the source URL. For example, this page is used to notify users when the homepage is temporarily unavailable, such as during Find Your Mobile Number List maintenance. search results 301 redirects basically display the redirected URL in search results. In other words, if you want to display the redirected URL in search results, you should basically use a 301 redirect . If you need to change the URL of a page that appears in search engine results, we recommend using persistent server-side redirects whenever possible.
This is the best way to ensure Google searches and users are directed to the correct page. Status codes 301 and 308 mean the page has been permanently moved to another location. (Citation: Google Search Central “Redirects and Google Search” ) memo Even if you apply a 301 redirect, the redirecting URL may be displayed in search results at Google's discretion (reference: Google Search Central "Redirects and Google Search" ). On the other hand, 302 redirects basically display the source URL in search results. Server-side temporary redirect Use temporary redirects to temporarily direct users to another page. This also allows Google to keep old URLs in search results for a longer period of time. For example, if your site's services are temporarily unavailable, you can set up a temporary redirect to direct users to a page that explains the situation without affecting the original URL in search results.
|
|