How to Redirect WordPress Pages & Posts

Want to understand redirects?

Let’s start with a quick example so we’re both on the same page.

Example of a redirect

Imagine you have an About page on your site and the permalink is “mysite.com/about-me.” You decide to make the URL a bit shorter so it’s only “mysite.com/about.”

You link to your About page in the menu and WordPress automatically updates this link for you. However, you have a few blog posts that still link to the “about-me” version of the URL. Even worse, you did an interview on someone else’s blog and they also link to the “about-me” version of the page.

If anyone visits the “about-me” URL, they’ll see a 404 error page instead of your About page.

The solution is simple: create a redirect from the old URL to the new URL.

You can’t edit links on other people’s websites, so they’ll keep linking to the “about-me” version of the page but visitors will be instantly redirected to the new “about” URL with your actual About page on it.

How to add redirects

The best way to add redirects to your site is with the free 301 Redirects plugin.

301 Redirects

In case you’re wondering, 301 refers to the page status code for a URL redirecting to another page.

301 Redirects can be installed easily via your Plugins menu, and then you’ll find this new settings menu in your dashboard:

301 Redirects Menu

Using the plugin is quite simple.

On the left side, you’ll find your URL already pre-filled for you followed by an empty text field where you can enter the permalink of the page you want to redirect.

Page To Redirect
I’ve added the “about-me” permalink from my example

Enter the old URL and then use the box on the right side of the page to enter the new page URL.

Redirect Target

You’ll notice that you can type out the complete URL. I appreciate the flexibility the developers have provided here because it allows you to redirect pages to external URLs if you would like.

The last step is to simply save the redirect you’ve added and you’ll find it listed in the 301 Redirects menu.

Finished Redirect

You can return to edit or delete the redirect whenever needed, and you can add as many redirects as you want.

Redirect Questions?

Redirects are invaluable for webmasters. Over time, you’re bound to move posts and pages leaving 404 errors in their absence. The 301 Redirects plugin is the simplest way to utilize redirects on your WordPress site.

If you have any questions about the plugin or redirecting pages with WordPress, please leave a comment below.

Related Posts

7 Comments

  1. Pip Pip

    For absolute newbies like me it would be very useful to include a glossary for terms.,and benefits and cons. For example I might not know what a “redirect ” is so why might I want or need it.

    • Ben Sibley Ben Sibley

      Hey Pip,

      Thanks for the feedback! I can do another post outlining the various types of redirects and what they mean for WordPress sites.

  2. Kate Kate

    I’m with Pip. I don’t understand what a redirect is needed for or why I would want to use it.

  3. Criando negocios online Criando negocios online

    I’m using the plugin. It really is efficient to make redirects without problems.

  4. Bashir Ahmed Bashir Ahmed

    Hi,

    Thanks for sharing the useful post. I’ve a question and please help me. I don’t want to install the plugin for redirect to an old post to new post.

    Please tell me how can I add redirect in .htaccess file?

    I’d appreciate your help!

    • Ben Sibley Ben Sibley

      Hi Bashir,

      This article does a good job of outlining how to use the .htaccess file for redirects.

  5. Marcos Marcos

    After much searching I finally found a simple and easy to understand article explaining how to do a redirect in the correct way in WordPress. Thank you very much.

Post a comment

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