• Categories
    • Tutorials
    • Beginners Guide
    • WordPress News
    • WordPress Security
    • Best WordPress Plugins
    • WordPress Themes
    • Product Reviews
    • WP Tips & Tricks
  • Guides
    • Start a Blog
    • Make a Website
    • WordPress Hosting
  • WordPress Hosting
    • A2 Hosting
    • HostGator
    • Bluehost
    • Cloudways
  • Managed Hosting
    • WPEngine
    • Rocket.net
    • WPX
    • Kinsta
  • Coupons
    • WPEngine
    • Flywheel
    • Cloudways
    • A2 Hosting
    • WPX Hosting
Beginners Guide

Beginner’s Guide: How to Add 301 Redirects to WordPress

Last Updated on: September 29, 2017 Colin Newcomer 4 Comments

Beginner’s Guide: How to Add 301 Redirects to WordPress

Struggling with how to add 301 redirects to WordPress? These nifty redirects are an SEO friendly approach that let you re-route traffic to your site in a number of helpful ways. But they’re also confusing for many casual WordPress users.

So, to help you out, I’m going to use this post to dig into 301 redirects as they apply to your WordPress site.

I’ll start with a basic discussion of what 301 redirects are and when you’d want to add 301 redirects to WordPress. Then, I’ll show you how to get them set up using either a free plugin or your .htaccess file.

If you’re already familiar with the basics, you can click the button below to jump straight to the tutorials:
Go Straight to Tutorials
Otherwise, let’s get started!

What Does a 301 Redirect Do?

In general, redirects are a way for you to automatically send visitors who land on Page A straight to Page B. Essentially, you use a redirect to automatically reroute traffic if you ever need to move a page (or pages).

There are different types of redirects you can implement on your site, usually marked by a certain number. Without getting too technical, these numbers essentially refer to whether or not the page has moved permanently or temporarily.

301 redirects deal with permanent moves.

That is, a 301 redirect tells web browsers and search engines, “hey, this page has permanently moved to a new location. So treat it exactly the same as the old page”

The main benefit of this permanent approach deals with SEO. According to Moz, a 301 redirect “passes between 90-99% of link juice (ranking power) to the redirected page.”

Basically, if you want to redirect human traffic and have your new page to maintain the same Google rankings as the old page, a 301 redirect is usually your best bet.

You Can Redirect More Than a Single Page

One neat thing about 301 redirects is that you aren’t forced to use 301 redirects on a 1:1 one basis.

You can redirect multiple pages to one new page, or automatically redirect all pages that meet certain criteria to their respective new version.

I’ll cover these more advanced types of 301 redirects in more detail below.

Some Examples of When WordPress Users Need 301 Redirects

Now, I want to get a little bit more specific and actually give you some examples of when you’d want to use a 301 redirect on your WordPress site.

  • Changing your permalink or slug structure. If you do so, you’d want to redirect URLs using your old permalink or slug structure to your new one.
  • Changing the URL of a single post or page. WordPress should automatically redirect the old post’s URL to the new one, but I still recommend manually setting up a 301 redirect because the process doesn’t always work.
  • Consolidating multiple posts into one. Some SEO experts recommend consolidating multiple small posts into one monster post. If you do that, you’ll want to 301 redirect all those small posts to the big one.
  • Moving to HTTPS/SSL on your site. If you add SSL to your WordPress site, you need to make sure to add a 301 redirect to send all unsecured traffic to the SSL version of your site.
  • Changing your domain name. If you completely change your domain name, it’s essential that you use 301 redirects to redirect traffic from your old domain to your new domain name.

Below, I’ll show you two methods to add 301 redirects to WordPress to handle these various situations.

How to Add 301 Redirects to WordPress With Simple 301 Redirects

For most minor 301 redirects, you can use a free plugin called Simple 301 Redirects. While you can manually use .htaccess for everything (the next method that I’ll show you), I like this plugin because:

  • You can quickly create 301 redirects without leaving your WordPress dashboard
  • It makes it much easier to manage your existing 301 redirects
  • It’s just plain easier for beginners than digging around the .htaccess file

To get started, install and activate the plugin. Once it’s activated, you can head to Settings → 301 Redirects to start setting up some 301 redirects:

simple 301 redirects

Redirecting a Single Page to Another Page

Let’s start with the easiest example – redirecting a single post or page to another single post or page.

Let’s say you want to redirect:

yourdomain.com/old-page

To

yourdomain.com/new-page

All you need to do is grab the URL of each page relative to your site’s root domain. Most of the time, that means you just want to take the portion of the URL that comes after “.com” (or whatever your domain name ends with).

For our example, that means you would configure the plugin like this:

  • Request: /old-page
  • Destination: /new-page

how to add 301 redirects to wordpress

While you can use the full URL, using only the portion relative to the root is a cleaner way to do it.

Then, click Save Changes.

And that’s all there is to it! Anyone who visits the old URL will be automatically redirected to the new URL.

Using Wildcards For More Complex 301 Redirects

Wildcards are a slightly more advanced feature that let you dynamically redirect multiple pages to one or more associated pages.

For example, let’s say you have an entire category of posts like:

yourdomain.com/travel/POST-SLUG

You have 10 posts in the travel category, all using that same URL category slug.

Now, let’s say you want to change the category slug to “adventure”. So you want all of those 10 posts to have the new URL of:

yourdomain.com/adventure/POST-SLUG

Rather than going through the tedious process of manually redirecting every single post, you can use wildcards to automatically handle the process for you.

Basically, a wildcard, represented by an asterisk *, is “any dynamic value entered in that part of the URL structure”.

Let me go back to the example to show you how it works.

If you configure Simple 301 Redirects like this:

  • Request: /travel/*
  • Destination: /adventure/*
  • Check the Use Wildcards? box

using wildcards in simple 301 redirects

That configuration means that:

  • yourdomain.com/travel/vietnam gets redirected to yourdomain.com/adventure/vietnam
  • yourdomain.com/travel/thailand gets redirected to yourdomain.com/adventure/thailand
  • Etc.

You can even get more creative with wildcard redirects if you want. Here are some examples from the plugin’s documentation:

examples of wildcards

How to Add 301 Redirects to WordPress via .htaccess

If you need to set up broader redirects – like to redirect an entire domain to another domain or redirect traffic to SSL, you can also implement 301 redirects via your .htaccess file.

While it’s possible to add basic 301 redirects to your .htaccess file, as well, if you’re just redirecting content within your existing WordPress site, I think it’s easier to use Simple 301 Redirects.

To add 301 redirects to your WordPress site, you’ll need to connect to the root folder of your WordPress site via either FTP or cPanel’s File Manager tool.

Then, look for the .htaccess file:

where to find .htaccess file

Before you make any changes to your site, it’s important to back up your existing .htaccess file. Even small mistakes can tank your site – so you definitely want a recent backup handy in case anything goes wrong.

Once you’ve backed up the current contents of your .htaccess file, you can add 301 redirects to the top of the .htaccess file.

Here are some examples of the types of 301 redirects that you can implement:

301 Redirect a Single Page via .htaccess

To redirect a single page to another single page, you can use:

Redirect 301 /old-url /new-url

Where each portion is the part of the URL that comes after your domain name (just like with the Simple 301 Redirects plugin).

Set Up 301 Redirects for Moving to SSL

If you recently set up SSL, you should add 301 redirects to send http traffic to https for better security and to avoid duplicate content.

To do that, add the following code snippet:

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

301 Redirect an Entire Domain via .htaccess

If you’re moving your WordPress site to a new domain name, the following code snippet will redirect every single page on your old domain to the exact same page on your new domain (assuming you keep the same permalink structure):

#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]

You need to add this snippet to the .htaccess access file of your old domain name – not your new domain name.

Make sure to replace “newdomain.com” with your actual new domain name.

Wrapping Things Up

301 redirects are an SEO best practice whenever you change the URL of any piece(s) of content on your WordPress site.

To manage 301 redirects directly from your WordPress dashboard, Simple 301 Redirects is a great free plugin.

Otherwise, you can use .htaccess to manually 301 redirect all or part of your WordPress site.

Have any further questions about how to add 301 redirects to WordPress? Let us know in the comments and we’ll try to help out!

+ Share
Disclosure

Colin Newcomer

Colin Newcomer is a WordPress writer for WPKube. He uses WordPress more often than any sane person should.

Related Posts

Back to all articles
  • Woocommerce vs Shopify

    WooCommerce vs Shopify Comparison: How to Choose in 2025 (Honest Ideas)

  • How to Start an Online Course Using WordPress and LearnDash

    How to Start an Online Course Using WordPress and LearnDash

  • WordPress Security: 19 Ways to Secure a Website (7 Are Must-Follow!)

    WordPress Security: 19 Ways to Secure a Website (7 Are Must-Follow!)

Coupons

View more deals
  • 10% OFF

    Elegant Themes Coupon

    You can’t move within WordPress circles without coming across E
    Get This Deal
  • pressable logo
    15% OFF

    Pressable Coupon

    If you’re looking for a high-quality managed WordPress hosting
    Get This Deal
  • Teachable Coupon Code
    10% OFF

    Teachable Coupon

    Building an online course business requires the right platform to
    Get This Deal
4 Comments Leave a Reply
  1. Ronnie Smith says

    October 14, 2017 at 9:15 pm

    I can’t tell you how many times I’ve had to do redirects the old fashioned way, through the .htaccess file. I couldn’t stand WordPress for a long, long time. However, I know it seems silly, but once I found this tool on WordPress, it was one of the many reasons why I made the switch from Drupal. Seriously, life is so much easier with plug-ins like this.

    Reply
  2. Quintin says

    September 5, 2018 at 8:41 am

    Hi.
    Can Simple 301 Redirects do this for me?
    There is a new domain and architecture / page name change for some pages. I want to specifically redirect some pages and then have a catch all for the rest.

    I found these examples – will they do what i need them to do?

    // REDIRECT NON-EXISTING PAGES TO INDEX.PHP

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    AND ADD THE FOLLOWING FOR SPECIFIC PAGES
    Redirect 301 /about http://newsite.com/about-this-company
    Redirect 301 /contact http://newsite.com/contact-our-team
    Redirect 301 /services http://newsite.com/our-great-services

    Thanks in advance.

    Reply
  3. pavithra says

    December 8, 2018 at 3:59 am

    Hi there
    I have many posts, now want to change the permalink from year, month, date version to post name version. Should i redirect for all the posts individually using plugin or any other method.

    Reply
    • editorial-staff says

      December 10, 2018 at 10:17 am

      That’s a bit trickier. Give this a check https://yoast.com/change-wordpress-permalink-structure/

      Reply

Leave a Reply Cancel reply

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

Our Newsletter

Get awesome content delivered straight to your inbox.

Thank you!

You have successfully joined our subscriber list.

.

THE BEST OF WPKUBE

Some of the best content we have published so far.

BEGINNER GUIDES & REVIEWS

110 Best WordPress Hosting Options for 2025 (Pros & Cons)
28 Best Managed WordPress Hosting Providers for 2025 Compared
38 Best Cheap WordPress Hosting Providers in 2025 (From $1.99)
46 Best WordPress LMS Plugins – Detailed Comparison & Review for 2024
55 Best WooCommerce Hosting Providers Compared in 2024 (All Budgets)
66 Best WordPress Landing Page Plugins Compared + Recommendations (2024)
79 Best List Building Plugins for WordPress In 2024
8How to Fix the 500 Internal Server Error on Your WordPress Website
9Beaver Builder Review: Honest Thoughts + Pros and Cons (2025)
10OptimizePress Review: Create Landing Pages with Ease
11How to Make a Website: Complete Beginner’s Guide
12Top 22 Best Free Stock Photo Resources For Your Site
13How to Start a Blog in 2022 (Step by Step Guide)
14How To Fix ‘503 Service Unavailable’ WordPress Error
1511 Best Contact Form Plugins for WordPress in 2025
16How to Add a Custom Logo to Your WordPress Site
17How to Fix Error Establishing a Database Connection in WordPress

WPEngine: 50% OFF Deal

Save 50% on one of the best managed hosting providers.

Get this Deal
Featured In Forbes Huffpost Entrepreneur SEJ

About WPKube

WPKube is an online WordPress resource which focuses on WordPress tutorials, How-to’s, guides, plugins, news, and more. We aim to provide the most comprehensive beginner’s guides to anything about WordPress — from installing plugins, themes, automated installs and setups, to creating and setting up pages for your website.

We have over 500+ tutorials, guides, product reviews, tips, and tricks about WordPress. Founded by Devesh Sharma, the main goal of this site is to provide useful information on anything and everything WordPress.

Twitter Facebook

Useful Links

  • Behind the Scenes
  • Beginner Guides
  • WordPress Hosting
  • WooCommerce Themes
  • MeridianThemes
  • Exclusive WordPress Deals
View All Guides »

Reviews

  • WPEngine 33% OFF
  • WPX Hosting
  • Flywheel 33% OFF
  • Divi Theme 20% OFF
  • Systeme.io
  • Elegant Themes
Reviews »

Deals

  • InMotion Hosting
  • LifterLMS Coupon
  • LiquidWeb Coupon
  • WPEngine Coupon
  • A2 Hosting
  • Solid Affiliate
More Deals »
© Copyright 2023 WPKube ® All Rights Reserved.
  • Contact
  • Site Terms
  • Disclosure
  • Privacy Policy