What is 301 redirect and easy ways to use it?

What is 301 redirect and easy ways to use it?
What is 301 redirect and easy ways to use it?

Have you heard of the terms 301 redirect and 302 redirect? If you previously planned to change your website address and redirect, you have probably heard this term several times.

This redirect serves to direct your website audience from the old address to the new address. That way you won’t lose them.

This Panda article will fully review what a 301 redirect is and an easy way to do a 301 redirect.

What are 301 redirects?

Learn About Redirects And Their Types On The Website
What is 301 redirect and easy ways to use it? 3

Before we talk any further about 301 redirects, it’s important to first understand redirects or redirects in general.

Definition of Redirect

As Panda has previously reviewed, a redirect is a website’s way of sending an instant message to the browser notifying that the page you are about to visit has moved or the address has changed.

Through this setting, when visitors go to the old address, they will be automatically redirected to the new page. They won’t run into 404 errors because the landing page has an error or is corrupted.

Redirection or redirection consists of several types. Each redirect has a special code that is different, such as the status code for the type of redirect that was performed. These types of redirects include a 301 redirect, a 302 redirect, a 303 redirect, a 307 redirect, and a 308 redirect.

Definition of 301 redirects

In simple terms, a 301 redirect is a permanent redirect of a website or web page to a different address. We can use this redirect for several different needs.

For example, when you decide to create a new website and move all the content from the old website to the new website. In this case, you may have made a change of address announcement from the old site to the new site.

However, there may be many people who do not know. Also, links previously linked to your site will continue to go to the previous web page.

The 301 redirect is also often used when redirecting web traffic from a blog post to a new post and changing the HTTP protocol to HTTPS after installing an SSL certificate.

The 301 redirect is also related to SEO. Well, regarding SEO, we will discuss it in the segment below.

When should we do a 301 redirect?

The 301 redirect is not done for the purpose of cheating or breaking the rules. Google also recommends this method to avoid website administration blocks and maintain link fairness.

Here are some conditions that require us to do a redirect with this 301 status code:

Website redesign

When we redesign the website, there will usually be some URLs that change. This can happen because the location changes, which affects the structure of the URL. If so, you should do a 301 redirect to avoid broken links.

expired content

There are several types of content that have an active period, such as landing pages, promotion pages, discounts, and the like. If the content is no longer valid, the webmaster will remove the page.

Unfortunately, this content is already indexed by search engines. The solution, you need to redirect to the home page or related product category page.

Merger of two websites

When you want to combine two websites into one, of course there is a PR to manage the permalink structure of the two websites and ensure that each URL is safe to access. The objective, that all the traffic and backlinks that we already have take us directly to the main website. The 301 redirect is the solution.

New permalink change

After a while, you suddenly realize that there was an error creating the permalink. Unfortunately, this is already indexed by Google.

If this happens, you can’t just change it. You have to redirect the old posts to the new ones directly.

Change of CMS

For example, let’s say you migrate from the blogspot platform to WordPress or another CMS. In order not to lose traffic, it is necessary to redirect the website.

Change HTTPS and WWW

In some cases, there are websites that are not yet using HTTPS and WWW. To be able to change the URL permanently, you need to set it up with a 301 redirect code.

Benefits of 301 redirects for SEO

So far, we know that the function of a 301 redirect is to redirect visitors and search engines from the old website address to the new address. However, what about the SEO impact?

Here are some of the effects of 301 redirects on SEO:

Maintain website ranking

When you need to redirect, of course you don’t want your hard work building website rankings to go to waste. Well, herein lies the benefits of a 301 redirect.

Redirect 301 also helps to pass all the links and ranking authority from the old URL to the new URL. Redirects work to move certain websites or pages and their links to a new address permanently.

This way you won’t miss out on prior SEO optimization to improve search engine rankings. In fact, the effectiveness of this 301 redirect reaches 90 to 99 percent.

Make sure the website can be accessed

When the website owner makes a transfer without redirect setup, visitors will see a blank page with an ‘Error 404’ warning. This can have an impact on drastically decreasing the motivation of visitors to return.

If your website is a company profile or an online store, this can also lower the trust level of potential customers. To ensure that error pages don’t appear and that visitors continue to get to the pages they want, you need to set up a 301 redirect.

Convince search engines to display new URLs

301 redirects are intended to increase visitor convenience as well as notify search engines that you are no longer using the old URL.

With the way it works, search engines will gradually know that the address has moved and will replace your website address with a new display URL.

How to redirect 301

You should do 301 redirects when you change the address of a particular website or page to a different URL permanently. However, how to do it?

There are at least two main methods you can use:

1. Make a 301 redirect through the configuration in .htaccess

You can easily create a 301 redirect through the settings in the .htaccess file. You can find this file in the root directory of the website. This file is available on the web hosting server if you are using Apache software.

If the server uses Nginx or other software, you can create an .htaccess file with a text editing application like Notepad or Atom. After creating the file, name it .htaccess and upload it to the root directory.

Then open the file and make any changes you want to the settings. There is a different code that you need to adjust.

1.1 Change address from old website to new website

We start by changing the old domain address to the new address. For example, suppose you want to change the website name from oldsite.com to newsite.com.

Here is the code you need to enter at the bottom of the .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^situslama.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.situslama.com [NC]
RewriteRule ^(.*)$ https://situsbaru.com/$1 [L,R=301,NC] 

1.2 Redirect to remove WWW

In the second case, you want to omit www in the URL so that the website can still be accessed with or without WWW.

In this case, here is the code to add in your .htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.situsbaru.com [NC]
RewriteRule ^(.*)$ http://situsbaru.com/$1 [L,R=301,NC] 

1.3 Redirect domain dari HTTP ke HTTPS

Next, if you want to change the domain from HTTP to HTTPS, use the following code:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

1.4 Redirect to change page URL

What if I want to change the URL of a specific page? For example, suppose you want to change the site address from http://newsite.com/blog.html to http://newsite.com/blog. The new structure you create by removing the .html stub.

In this case, you can enter the following code:

Redirect 301 /blog.html https://.situsbaru.com/blog

Note that you do not need to add the ‘RewriteEngine On’ line of code if it is already in your .htaccess.

2. Create a 301 redirect with a WordPress plugin

For WordPress users, there is an easier way to do a 301 redirect, which is to use the Redirect plugin.

You can use this plugin to implement 301 redirects in the internal area of ​​the website, also known as per website page on a domain. So if you want to redirect from one website to another, you need to change it in .htaccess.

Like most WordPress plugins, the redirect plugin is very easy to use because you don’t need to code anything. Here are the steps to start using this plugin:

  • Through your WordPress admin panel, install and activate the redirect plugin.
  • After the plugin is active, go to Tools > Redirection
  • Enter the old URL in the ‘Source URL’ section and update the new URL in the ‘Destination URL’ section
    Plugin Redirection
  • Click ‘Add Redirect’, dannnn Succeed!

With this plugin you can simultaneously find out how many audiences visited the old URL and were redirected to the new URL.

In addition to this plugin, there are several 301 redirect plugins that you can use in WordPress. For example, Easy Redirect Manager, Simple 301 Redirects, SEO Redirection, Easy HTTPS Redirection, 301 Redirects and others.

conclusion

A 301 redirect is a technique you can use to tell visitors and search engines that a page has permanently moved to another page. You can use this redirect technique when redesigning a website, merging two websites, changing permalinks, changing CMS, and migrating to HTTPS.

There are several ways you can use to create a 301 redirect, i.e. by making settings in the .htaccess file and using the 301 redirect plugin in WordPress.

Hopefully this article will be useful and help you redirect! ️

Read More :   The power of my voice: Sheryl Swoopes builds on the vision of Title IX | BLOW