How to do 301 Redirects in WordPress : A Beginner Guide

If your website has broken pages then it affects your website badly and you will need help. So Redirects or Redirection is a proper way to fix these broken pages to get traffic to your website or blog. You should know about How to do 301 Redirects in WordPress.

First, you should know about What is Redirects and how many types of redirects.

What are Redirects or Redirection?

If a user opens a web page and he or she goes to another web page automatically this is called Redirect. It means you have opened any page and that page is not present and you redirected to another page without seeing the error.

How to do Redirects in WordPress

There are many types of redirects or redirection.

  • 301 Redirects ( Moved Permanently)
  • 302 Redirects ( Found)
  • 303 Redirects ( See Other)
  • 307 Redirects ( Temporary Redirects)
  • 308 Redirects ( Permanent Redirects)

301 Redirects ( Moved Permanently):

301 Redirect uses more and this is important for the SEO Purpose. If you want to maintain SEO Rank without any harm this type of redirect is used.

If you want to move your webpage permanently to another page then this is called 301 redirects. 301 redirect in case of moving your webpage, change the permalink structure, Error 404.

In 301 Redirects, Request Method Conversion from POST to GET is allowed.

302 Redirects ( Found):

302 Redirect is used for the ambiguous redirect. If you want to redirect your webpage to a different page for some time then you can use 302 redirects.

In 302 Redirects, Request Method Conversion from POST to GET is allowed.

303 Redirects ( See Other):

303 Redirects are used for redirect web applications to New URL after an HTTP POST performed.

It means it does not link to new resources but redirected to another page like Confirmation Page or Upload Progress page. It sent back as a result of PUT or Post. This method is used to display the redirected page as GET.

307 Redirects ( Temporary Redirect):

307 redirects are used to move the webpage to another page temporarily. This redirect is called 307 Redirects.

In 307 redirects, Request Method Conversion from POST to GET is forbidden.

308 Redirects ( Permanent Redirect):

308 Redirects are used to move one resource to another permanently.

In 308 Redirects, Request Method Conversion from POST to GET is forbidden.

Why You Should Use Redirects?

  • Change the Permalink structure of your pages and posts.
  • Fix the broken pages ( Error 404).
  • You want to move one page to another page.
  • If you want to move another domain.
  • If you are fixing the page problem and redirect the user to another page for some time.

So these are the cause for Redirects or redirection.

Which Redirects Are Important for Us?

There are two redirects that are important for the purpose of SEO.

  • 301 Redirects
  • 302 Redirects

Here we will tell you about How to do 301 Redirects in WordPress using .htaccess or plugins.

How to do 301 Redirects in WordPress using 2 Easy Methods?

There are two methods of 301 Redirects in WordPress using the Plugin and .htaccess file.

How to do 301 Redirects in WordPress using the Redirection Plugin?

Step 1: Go to the WordPress Admin Dashboard then Install and Activate the Redirection Plugin.

Redirection

Step 2: After activating the Redirection plugin, it will ask you to set up the plugin. It will show you the Welcome Page.

Welcome to Redirection

Click on Start Setup.

Start Setup

Step 3: It will ask you to do some Basic Setup. Choose three options for your WordPress website.

  • Monitor Permalink Changes in WordPress Posts and Pages.
  • Keep a log of All redirects and 404 Errors.
  • Store IP Address for Error 404 and Redirects.

If you choose the first option, it will redirect your pages and posts automatically after changing the permalinks.

Basic Setup

After choosing all these options, click on Continue Setup.

Step 4: You will see the REST API, no need to do anything. Click on Finish Setup.

REST API

It will show the Setup Progress, after completing the progress, Click on
Finished.

Setting up Redirection

After clicking on Finished, it will redirect you to your Redirection Plugin homepage.

Redirections

Step 5: After setting up this plugin, Go to Redirects and in redirects, you will see Redirection dashboard and it will ask for adding the redirection. So click on Add New.

It will ask for redirecting your webpage.

Step 6: If you want to move to contact us Page to Homepage then follow these steps for 301 redirections in WordPress.

  • Put Contact Us Page URL in Source URL.
  • So put Title under Title section otherwise leave it empty.
  • In Match, Choose URL Only.
  • Choose Redirect to URL in When Matched and select 301-Moved Permanently in With HTTP Code.
  • Put your Homepage URL in Target URL.
  • In Group, Choose Redirections and Zero in Positions.
  • Click on Add Redirect.
Add New Redirection

It will redirect your Contact us page to the Homepage permanently. Then it will show your redirects with redirect type.

Redirect Type

So this is the complete guide about How to do 301 Redirects in WordPress using plugin.

You can access the Redirection Plugin in the Tools section. If you want to use other redirection plugins then you can access these plugins in the Settings section in the WordPress Admin Dashboard.

How to do 301 Redirects in WordPress using a .htaccess file?

Step 1: If you have installed Yoast SEO then you can edit your .htaccess file through this plugin.

Go to the Tools section in Yoast SEO. Click on File Editor. You can get .htaccess file access here.

Tools

Step 2: If you want to move to Contact us Page to Homepage then put 301 Redirect code like this.

Redirect 301 /contact-us.html https://blogginggiant.com 

Redirect 301 /old-url https://www.abc.com/new-url

htaccess file

Step 3: Your web page is successfully redirected.

Put your Old URL section after your website URL and put a complete URL of a new page.

Put this code in .htaccess file in Yoast SEO and Save the file. So your contact us page is permanently moved to the Homepage.

If you have not installed Yoast SEO then Go to cPanel and put this command in the .htaccess file present in cPanel.

So here you have learned about how to do 301 Redirects in WordPress by 2 easy methods.

Conclusion:

If you are facing any problem regarding redirects then you can easily fix your website broken pages or links error through this guide. You have not fixed any kind of issue then apply the redirection process early.

Tell us in Comment Section, which method do you want to apply for redirection in WordPress.

If you have liked this article, share it on your social media profiles and like our Facebook Page.

Read More:

7 Best WordPress Redirect Plugins for Resolving Website Errors

Last Modified on by VISAL TYAGI

Share this post

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest

Leave a Comment

Receive The Latest Traffic Tips

30 Proven Ways
To
Increase Website Traffic

Discover the Secrets – 15000 Words

9 Shares
Share8
Tweet
Pin1
Share
Share