What's WP
Find Everything Related to WordPress - Best Tutoriasl on WordPress!
How to Redirect WordPress Page? Using Redirection Plugins & .htaccess

How to Redirect WordPress Page? Using Redirection Plugins & .htaccess

redirectionRunning a WordPress website, sometimes we need to change the URL, slug, or Permalinks of posts for special purposes. In this case, you should make sure that you have done a 301 redirection so that the old post can be correctly linked to the new one. By this way, you can keep your visitors as well as the page ranking in the search engines.

This tutorial introduces two easy ways to guide you how to redirect WordPress pages: by utilizing a plugin and by coding stuff. With the step-by-step explanation and carefully guidelines, even WordPress beginners can successfully achieve this process.

When and Why You Need to Redirect WordPress Page

The practice of page redirection can happen on all the websites due to various reasons. For instance, you may move your website to a new domain, you may delete some of your posts or pages, or, you may combine multiple articles into one. No matter what you have done to your site, you should tell your readers that the content they are looking to check has already been moved to another location with a quick message. And this can be done via the redirection practice.

Without the redirection, people can only see a 404 error page. This is quite frustrating and is harmful for your website SEO. In this case, you should redirect people and search engines from these content-removal or permalink-changing pages to the new locations automatically. Note that the redirection includes the permanent one and the temporary one. This time, we only mention the permanent redirection that is called as the 301 redirection.

Redirect WordPress Page with a Plugin

As WordPress is flexible and offers powerful plugins to enable users to extend the website functionality, using a plugin is the easiest way to redirect visitors from one post to another. We have listed out the top rated WordPress redirection plugins in the following.

Simple 301 Redirects

Website: http://wordpress.org/plugins/simple-301-redirects/

Simple 301 Redirections offers an easy way to redirect orders to any other page on the website. Generally, you cannot preserve your URL structure if you transfer the website to WordPress. However, this plugin can help you make it. After building up 301 redirects, visitors can go to your new page.

To use it, you simply need to click the Settings > 301 Redirects button. Here, you can enter your old page link into the Request field and the new address into the Destination field. If you want to use wildcards for the folder redirection, you simply need to put an asterisk after the name of the old folder. Note that you can delete any redirection you want by hitting the Delete button.

Simple 301 Redirects

Quick Page/Post Redirect Plugin

Website: http://wordpress.org/plugins/quick-pagepost-redirect-plugin/

This plugin is helpful and gives you ways to redirect pages to any other. It comes with a lot of useful features and the allowance to put a rel=”nofollow” attribute, change the defaultURL, and many other. Note that, this option does not allow the nofollow link.

This plugin gives you more options for redirection. After the installation, you firstly can click the Quick Redirects button to add the new redirects. Here, you simply need to enter the Request URL and the Destination URL, and then, click the Add New Redirects button. The existing redirects will be listed in the following. In addition, you can choose to open the new redirect in a new window and decide to enable the NoFollow functionality as you want.

Quick Page/Post Redirect Plugin

If you want to import or export the redirection, you can go to the Import/Export section to make a simple hit only. In addition, you can check the summary of all your redirection from the Redirect Summary part. Even, from the Pages tab, you can directly check the Redirect Column from the screen.

Permalink Finder Plugin

Website: http://wordpress.org/plugins/permalink-finder/

If WordPress cannot find a permalink, this plugin can detect the problem and inform you at the very first time. It goes through teh whole database and pick out any words that seem similar to the found bad links. Then, when someone visits your website, they are taken to the right place rather than the former bad one.

Redirection

Website: http://wordpress.org/plugins/redirection/

Redirection is a very useful and practical plugin that helps to detect any 301 redirection in WordPress websites. With this tool, you don’t have to worry about this kind of problem anymore. When you move your article, posts, and pages to a new website or change the category of a post, it can lead visitors to the right place automatically.

Change Permalink Helper

Website: http://wordpress.org/plugins/change-permalink-helper/

It can be a huge trouble for bookmark users and search engines to link to your content when you have changed the structure of your website permalink. Then, this plugin tries to deal with this issue using the new URL slug and searching for its ID in WordPress database. After finding the post based on the slug, it will redirect to the right location and send the header message of “moved permanently 301” for changing the URL on the search engine index.

Safe Redirect Manager

Website: https://wordpress.org/plugins/safe-redirect-manager/

Safe Redirect Manager lives up to the name, because it works perfect from the beginning to the end with the clutter-free interface and rock-solid functionality. The rules of redirecting apply to both base URL and destination URL. Multisite can also benefit a lot from using this HTTP redirect manager for WordPress.

There is also a limitation on the number of redirects, which discourages some users who have more needs. Safe Redirect Manager will display white page when redirect links arrive at a certain number. It is said that the number could be 150.

Safe Redirect Manager

Yoast SEO Premium

Website: https://yoast.com/wordpress/plugins/seo/

Yoast SEO Premium is known to webmasters due to the powerful features among which redirect manager is included. There are some instances when you want to delete your posts or pages. At that time, this plugin will ask you for advice on how to deal with the old URL. In this way, your website can be much healthier because visitors can be redirected to a new page with their wanted information.

If you do nothing with the old URL, your visitors will get stuck on a Not Found error. There is no doubt that visitors will have a bad using experience with your website. The premium version allows you to create redirects with ease.

Yoast SEO Premium

Quick Page / Post Redirect Plugin Instruction

To help you better understand the operation of redirection plugin, today, we just take the Quick Page / Post Redirect Plugin as example to show you the detailed utilization.

First of all, you should install and active the Quick Page / Post Redirect Plugin. Once activated, it adds a Quick Page / Post Redirect meta box to all pages / posts and add a Redirects Options in the right menu bar.

You can start to edit the post / page you want to redirect directly by configuring the Quick Page /Post Redirect box.

Quick Page / Post Redirect meta box

Turn on the redirect by selecting the checkbox on Make Redirect Active and add rel=”nofollow” to redirect link if you want. Then, enter the URL link where you want to redirect readers to. At last, choose the type of redirect, which is 302 by default. As our post / page is permanently moved to a new one, we choose 301 permanent redirect.

In addition to editing single page / post, you can also set redirect for multiple URLs by hand. Go to Redirect Options -> Quick Redirects, you can set redirects for various links. To add these additional 301 redirects, put the URL you want to redirect into the Request field and the place it should redirect to in the Destination field. Note that the Request field should be relative to the ROOT directory and contain the / in the beginning, and the Destination field can be any valid URL or relative path from root directory.

redirect multiple links

Moreover, you can customize the entire redirect options from Redirect Options -> Redirect Options. You can import or export your redirects, determine whether use Custom Post Types, hide meta box for specific posts, use jQuery, and so on. As well, you can configure the Override Redirect Options to turn off all redirects or redirect all links to one link, and so on.

redirect options and settings

Redirect WordPress Page using .htaccess Override

However, some webmasters do not like to use a plugin but prefer to manage the process by hand. Especially some people think that too many plugins many slow down the website speed and consume server storage. So, in the following, we also introduce another method to redirect WordPress page with code.

First, log into your server and find the .htaccess file in the root directory. Note that there may be other .htaccess files in the other folders, so make sure you find the right one in the root folder.

find .htaccess file

Just select the file, right-click on it, and you can see a series of options, just click on Edit to start to redirect. Then, you can see the following codes, but note that don’t mess any of the existing code in this file. We suggest you to add a blank line after RewriteEngine On but before IfModule to do the 301 redirect.

edit htaccess file

Actually, it is simple to do 301 redirects with code. You can easily add the following Rewrite Rule in the new blank line.

RewriteRule ^old-slug$ http://yourdomain.com/new-slug [L,R=301] 

Only note that you should change the old-slug to the slug of the post / page that you are trying to redirect. Besides, the slug is not the entire URL, but only the relative URL of your homepage. For example, if your homepage relies on www.yourdomain.com, and the article we are handling with is at www.yourdomain.com/old-post-slug, then the slug is old-post-slug.

As well, you should replace the url yourdomain.com/new-slug with your new post link. Don’t do any changes on [L,R=301].

At last, be sure to save these changes in the file. You can test the redirection by entering the old URL in the browser. If it brings you to the new URL automatically, you completely finish the process. Otherwise, you should check out for your operations.

Author

Joyce is a professional writer & SEOer who loves trying new things and sharing the experience through blogging. She loves clean design, playing with different WordPress themes, SEO, etc. Very often, you could find her in various WordPress event as invited speakers.