Beginner’s Guide to Creating WordPress 301 Redirects (Step by Step)

Are you making an attempt to create a redirect in WordPress? Unsure what a redirect is and why it can be crucial? Don’t fear, we have now bought you lined on this beginners guide to WordPress 301 redirects, we are going to cover what a redirect is, the best way to create a redirect in WordPress, why do you want, and when you must use redirects.

Prepared? Let’s get began.


What’s a Redirect in WordPress?

A redirect is a manner on your web site to ship a fast message to your reader’s browser and inform them that the web page they wish to go to has been moved, so their browser can routinely level them to the brand new web page of your selection.

There are numerous various kinds of redirects corresponding to 301 redirect, 302 redirect, 307 redirect, and many others.

Nevertheless to maintain this text easy and helpful, we are going to solely cover 301 redirects as that’s an important.

Let’s check out why it can be crucial by understanding the use case.

When do you want a 301 redirect in WordPress?

The first purpose to make use of 301 redirects is when your website or a web page on your website has been moved, and also you wish to level the user to a brand new web page as an alternative.

This text concept got here to us when one in all our readers requested us for a strategy to redirect users from a previous post to a brand new post.

– It’s essential to create a redirect when you find yourself planning on deleting a post or web page in favor of recent content material.

– It’s essential to create a redirect when you find yourself planning on altering the permalinks of your submit or web page.

Why? As a result of not making a redirect will trigger your users to see a 404 not found error. Which isn’t solely unhealthy for customers, however it may additionally impression your website’s SEO and harm your search engine rankings.

That’s when 301 redirects turn into essential.

It means that you can inform search engines like google and yahoo and your user’s browser that the web page they’re making an attempt to succeed in has been completely moved to a brand new location.

This enables for all of your previous web page’s visitors and backlink (search engine marketing) strengths to be transferred on to the brand new web page.

Now that we have now coated the why and when of redirects, let’s check out how one can create 301 redirects in WordPress utilizing the totally different strategies which can be out there.

Easy methods to Create Redirects in WordPress (using Plugins)

A neater method to create and manage 301 redirects is through the use of one of many WordPress redirect plugins. This lets you set up redirects without ever writing a single line of code.

1. Redirection

The only manner so as to add and manage redirects in WordPress is through the use of the Redirection plugin. Set up and activate the plugin. As soon as activated, go to Tools » Redirection to set up your redirects.

redirection-plugin to redirect post in wordpress


Redirection plugin not solely means that you can set up redirects, it additionally helps you discover out 404 errors in your WordPress website. You’ll be able to then redirect these URLs to an acceptable destination.

2. Page Links to

Typically it’s possible you’ll wish to keep a post/web page, however, redirect it to a different post or web page. That is the place Web page links to is useful. This straightforward plugin provides a meta field in your post edit display screen the place you’ll be able to enter the address of the brand new location the place you wish to send your users.



3. Simple 301 Redirects

One other simple to make use of the plugin is Simple 301 Redirects. Because the title suggests, it makes 301 Redirects simple. Merely set up and activate the plugin after which go to Settings » 301 Redirects so as to add your URLs.



Now whereas establishing 301 redirects utilizing a WordPress plugin is simple, it has some minor performance setback. Primarily based in your WordPress hosting provider, your WordPress redirects perhaps a bit slower by some microseconds.

If you wish to make your redirects quicker, then you are able to do so through the use of the code method and .htaccess file.

Setting Up 301 Redirects in WordPress utilizing .htaccess

Utilizing the net server configuration file .htaccess, WordPress users can arrange 301 redirects which can be quick.

Please remember that a small mistake in your .htaccess code could make your WordPress website inaccessible, and it could begin displaying Internal Server Error.

That’s why it can be crucial that you just backup your .htaccess file earlier than making any modifications.

To edit your .htaccess file, you’ll need to connect with your web site utilizing an FTP client. The .htaccess file resides in your WordPress website’s root directory.

For those who can’t see your .htaccess file there, then you could power your FTP client to point out hidden information.

You’ll be able to edit .htaccess file in any plain textual content editor like Notepad.

Right here is an easy redirect, the place we try to ship a user visiting a previous post to a brand new post.

RewriteEngine On
Redirect 301 /a-very-old-post/

You’ll be able to add the code above ideally on the finish of your .htaccess file.

That’s all. We hope this beginner’s information to creating WordPress 301 redirects helped you set up redirects on your website.



Add a Comment

Your email address will not be published. Required fields are marked *