How To Use 301 Redirects To Fix 404 Not Found Pages On WordPress

  • Home
  • WordPress
  • How To Use 301 Redirects To Fix 404 Not Found Pages On WordPress
Aug 3, 2020

Whenever you update your website links or page URLs – search engines tend to keep the old information in their results until the search engine web crawler scans your website again. 

Having old links that don’t redirect to your new ones can cause problems for SEO and obviously hurt your traffic. 

You always want to redirect your old or missing pages to your new links to ensure you keep your traffic and SEO in good standing. 

There are two ways to handle missing pages on your WordPress website:

  • By implementing a basic 301 redirect
  • By using a WordPress plugin to scan for all missing pages and implement a redirect

301 Redirect

If you only have one or a couple of pages/links that aren’t working, you can use a simple 301 redirect. This will send traffic from your old links to your new ones.


To put in a 301 redirect, you need to insert the redirect in the .htaccess file on your website, in the following format:

Redirect 301 /old-page/

Let’s use an About Us page as example: (the old old page URL) (the new page URL)

The 301 redirect you put in the .htaccess file:

Redirect 301 /about-us/

This will automatically redirect to URL.

Here’s an example of .htaccess code when viewed via cPanel’s File Manager:

Redirection Plugin

We recommend using a Redirection plugin to scan and redirect all old links to new ones on your WordPress website. It’s very straightforward and easy to use, and it automates the redirection process and lets you know which links are not working correctly.

Let’s start!


Log in to your WordPress Dashboard, and head to Plugins -> Add New. Type in Redirection in the search field and click the Install Now button to install the plugin:


Next, click the Activate button to enable the plugin:

Redirection Setup

You will then see a notice at the top of the page that the plugin needs to be setup first, so click the Redirection setup link to move to the next step: 

Finish Setup

Next, the plugin will take you through a couple of simple setup steps. The first screen explains what a redirect is and how to set the plugin up:

Click the Start Setup button. 

On the next page, tick the boxes that apply. We recommend enabling the monitoring of permalink changes so that the plugin can automatically set redirects. Additionally, have the plugin save the log of all 404 errors and redirects, so you can check them if needed.

Click the Continue Setup button to move to the next step.

Next, the plugin checks if the REST API is working correctly. Click the Finish Setup button. 

The plugin will then configure itself, and once completed, click the Finished button.


Now, head to Tools -> Redirection to configure the redirect.

Add Redirects

On the main (Redirects) screen, you’ll see a list of your current redirects, and you can add a new redirect.

For example, if we want to redirect (old) page to the (new) page, we would configure it like this:

More Options

In addition to that, you can click the cogwheel icon to expand more options:

Click the Add Redirect button to save changes once ready.

It’s that easy!

The plugin has multiple functions, and you can find the menu with various options on the top of the page:

Here’s a quick rundown of these options:

Redirects – Shows all current redirects and allows you to add a new redirect.

Groups – Allows you to sort your redirects into groups for easier management and organization:

Site – These options are site-wide, which means they’ll affect the entire website. You can redirect the whole website to a new domain, from HTTP to HTTPS, add aliases, etc.

Log – Shows all log entries, so you can check them if needed.

404s – Here, you’ll find the detected missing URLs on your website.

Import/Export – This option allows you to import or export a CSV, .htaccess (Apache) or JSON (Redirection) file. Additionally, you can export logs for current redirects and 404s.

Options – These are the plugin options where you can adjust various settings such as logs retention, scanning features, etc.

Redirection is a perfect plugin to handle 301 and 404 redirects, and we can’t recommend it enough :).

If you see a 404 not found page on the WordPress index page, this is a different issue, so please check this article. We also have an advanced 301 redirects guide here, if needed.