Whether you are a novice or an SEO expert, you need to work with wordpress redirects soon. Because everyone should be able to transfer different URLs from one website to another. This is usually needed when you delete a page from your website or try to change the URL of a particular page. But what are the types of redirects and which ones should we use?
Table of Contents
What is a redirect
Redirection means moving the page from one address to another. By doing so, we will notify the search engines that they must use another page temporarily or permanently.
You may have changed your website URL completely. It means changing the domain of the website. In this case, too, you must use redirects.
When do we need a redirect
- When we want to change the domain of the website.
- We want to delete a page.
- When we have error 404.
- Change website address to address without WWW
- Move your content management system.
- Change the Permalinks in wordpress
How to create a redirect
There are several ways to create a redirect in wordpress. One of these methods is to use wordpress redirect plugins. For example, you can use the premium version of Yoast SEO or plugins such as Redirection that will do the redirect operation for you.
Let’s get acquainted with HTTP codes
We have already talked about HTTP codes on the topic of the web server in the professional wordpress training course. The HTTP code specifies what the server responded to our request. When we encounter error code 404, it means that nothing was found.
But when we come across the 3XX series code, the code means that a redirect must occur. So let’s talk about the 3XX code series.
Types of redirects
In general, there are several redirect codes in web servers.
- 301 Permanent
- 302 Found
- 307 Temporary
Of course, there are also codes 410 and 451, which 410 means the removal of content, and 451 means no access for legal reasons. These two codes are not considered redirects, but you can use them.
Redirect 301 means that you have changed the URL of this page forever, and search engines are required to change the URL of this page to a new URL. So we use this redirect model when we have really changed the address forever.
Redirect 302 means found. This means that this address was found and this is the correct address. But the difference between a 301 redirect and a 302 redirect is that in a 301 redirect the address changes forever, but in a 302 redirect the page address changes temporarily and the previous address may be used in the future.
In a 307 redirect, you have temporarily changed the address and will probably use the old address in the future. But that’s exactly like a 302 redirect! We can say yes almost! Of course, 307 redirects appeared on the web after HTTP 1.1. The difference between Redirect 302 and 307 is that in Redirect 302 you incomprehensibly notify the Google bots that the content has been redirected, but in Redirect 307 you explicitly state that the URL has been temporarily changed and we will use the previous URL in the future.
All of these factors affect the transfer of SEO value from the old URL to the new URL.
Good luck. 🙂