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.
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:
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.
Enter the old URL and then use the box on the right side of the page to enter the new page URL.
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.
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.
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.
Hey Pip,
Thanks for the feedback! I can do another post outlining the various types of redirects and what they mean for WordPress sites.
I’m with Pip. I don’t understand what a redirect is needed for or why I would want to use it.
I’m using the plugin. It really is efficient to make redirects without problems.
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!
Hi Bashir,
This article does a good job of outlining how to use the .htaccess file for redirects.
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.
Hi, thanks for sharing the useful information. I have a question and please reply to us. How to best SEO plugin used in a website and reach for the website in the search engine page?
I use and recommend Yoast SEO.