Broken links, new domains, website merging, and similar scenarios are sure ways to lose website traffic to your competitors.
Until you implement redirects.
Redirects work like traffic signals for your website that divert traffic from an old dysfunctional URL to another. They guide search engines and visitors to an active destination to make sure that your guests don’t encounter a dead end on your website, like a 404 error page.
Amongst different types of redirects, 301 and 308 serve as permanent HTTP status codes with nearly similar functions. At this point, it’s important to understand which redirect can benefit you the most for a better website ranking.
In this article, we will dive deep into what redirects are, compare 308 vs 301, help you choose the right one for your website, and teach you how to implement them with best practices.
Before we discuss what redirects are, it's important to have clear basics on HTTP status codes. This will help us understand better what 301 redirects are.
When you enter a website using your browser's URL, your browser sends a request to the website's server, asking for the information. The server, in turn, sends you a status code, which contains the relevant information for your browser. Note that it’s not only your browser (client) that benefits; the search engine also finds the status code very important as it utilizes this information to update its index for ranking purposes.
So when the website returns the information:
The HTTP status code sent by the website can be one of the following:
As you can see, a redirect status code comes under the 3xx category. When a server sends a 3xx HTTP code status, it indicates that the URL has moved, and the browser needs to direct its request toward the new location by updating the URL.
Redirect codes are of the following types: 301, 302, 303, 307, and 308.
Here, 301 and 308 are permanent redirects as compared to 302 and 307.
302 and 307 are temporary redirects, which are valid in scenarios where the website URL is temporarily invalid or unavailable. Consider a URL on your page dedicated to winter trekking. But what if someone visits this page in the summer? You may want to redirect it to some other page for a temporary period until winter’s back.
A 301 HTTP status code indicates that the entered URL has permanently moved to a new location and that the traffic should be directed toward the new URL.
This means that the search engine and browser should automatically update their records to access the new URL in the future instead of returning to the old URL that stands invalid.
We will understand this through an example. Let's say your website has multiple pages, all with the same content. From the SEO perspective, this is duplication and will spoil your ranking, negatively impacting your authority.
In this scenario, I will use 301 to direct the crawler and clients to the target URL from all these pages. This will save you from data duplication and leave you with one page with the latest data that Google will index positively.
The benefit of performing a 301 redirect is that it not only redirects the traffic but also transfers the authority to the new page (or equity link), saving the website from traffic loss and SEO performance.
Pro Tip: As per Google's John Muller, it's best to keep 301 redirects active for at least 1 year.
Keeping it active for 1 year is sufficient to ensure that the engine and browser have updated all their cache with the new link. This won't affect your traffic.
Below are a few scenarios for using 301 redirects:
Now, let's understand the other permanent HTTPS code, i.e., 308 status code, and compare it with 301.
Like 301, HTTP code 308 indicates that the resource from the old URL has been permanently moved to the new URL. This means all future requests must be directed towards the new URL.
Now, you must wonder if it's the same as 301 and where the difference is.
308 was introduced in 2015 under the HTTP1.1 initiative to meet the requirements that other codes failed to meet.
308 stands out from others as it doesn't allow the HTTP to change its request from POST to GET.
In case you heard the two terminologies the first time, these are the most common methods used by HTTP. Consider it as HTTP's communication mode with other servers for exchanging information. Let’s elaborate on this.
When you enter a URL on your browser, HTTP uses the GET method to request the website information. The website's server, in return, gives the website data which your browser displays on your screen.
In scenarios like signing in to your email account, your browser submits the data to the server using the POST method. It sends the encrypted data to the server, which is further processed.
With 308 redirects, the request method GET and POST remains preserved throughout. Say that after submitting a form data or email credentials, you landed on a URL that has been redirected to another; 308 will ensure that the data passes as it is.
In such a scenario, had you used 301, the HTTP method had to change to GET, and you would have lost the data.
Now, let's compare 301 vs 308 with finer details.
301 and 308 redirects guide your clients to the new URL instead of crashing them to a dysfunctional page. These redirects will tell the browser that they must visit a new link.
Though they perform the same task, knowing the difference will help you choose the right one:
Use-cases:
You might be left concerned about which HTTP status code is better between 301 and 308. And whether using one benefits over the other from the SEO viewpoint.
Credits: Semrush
If you follow John Muller's response to this, the conclusion is as follows:
Now, if you are wondering whether 301 or 308 contribute to SEO factors, let’s answer that. While the exact answer is vague, it is believed by experts that it doesn't directly contribute to SEO rankings.
But it indirectly impacts because it transfers the link juice from the old URL to the new one.
Pro Tip: Always use Site Audits to assess the broken pages on your website, how your directs are working, and whether a login page benefits from a 308 redirect.
We have read extensively about what redirects are, their types, and the difference between 301 and 308 permanent redirects. But how to implement them for your website? It's time for some practical action!
The most common method to perform a DIY 308 redirect is by accessing your website's .htaccess file.
Where to find that? You must use an FTP client to access your website's root folder. Or, if you are using your website's control panel, you need to look for a website file manager.
Once you are here, look for a public_html folder. You'll find the .htaccess file here.
You need to edit this file with the following command:
Redirect 308 /old-url.html http://www.yourwebsite.com/new-url.html
Depending on whether it's a directory or domain redirect, the command will change accordingly.
Make sure it is saved in your website's root folder.
If you use WordPress or Wix platforms, implementing website redirects becomes easier. This is because of the prebuilt plugins which allow you to set a 308 permanent redirect.
You can activate the Redirection plugin for WordPress, which allows you to add redirect options under the Tools option.
Redirects need to be implemented properly, and the following practices will help you as they are also beneficial to search engines for indexing purposes:
1. Minimize Redirect Chains
2. Monitor and Audit Redirects
3. Validate after Implementation
4. Prioritize Speed and Efficiency
5. Preserve Link Equity
7. Educate Your Team
Many scenarios, such as domain changes or bad links, disable visitors from accessing your URLs. In such cases, you must use permanent redirects to train your browsers and search engines about the new URL. However, there are two types of redirects, and choosing the right one can be confusing. 301 vs 308 is a widespread debate over the web, and this article mentions which one will benefit you the most regarding proper redirects.
At ViralChilly, we plan the best strategies to earn you growing website traffic. This includes redirect factors such as choosing 301 or 308 status codes so that you don't have to worry about gaining traffic.