How To Create Redirect In WordPress
Managing a site sometimes requires a post or page to be moved or trashed. In this case there are a few redirects you can do to keep your pages from showing the dreaded 404. The main way for permanent redirect is with a 301. If the redirect is just temporary you can use a 302. This guide will go over setting a permanent redirect.
Use a Redirect Plugin
The easiest way to manage this is with a Redirect plugin. Once you are logged into your Admin page, just follow these steps:
- Go to your plugins and search for Redirect
- Find a plugin that you want to use
- Install the plugin
You can follow our full plugin installation guide here.
Then after you have the plugin installed you need to activate it.
- Select installed plugins
- Find your plugin that you installed
- Click the activate button
Once you have the plugin you wish to use you are now ready to go and start managing your redirections. You can do this from the Tools category of the WordPress admin area, then select Redirection.
From here you can begin to assign specific pages or posts to be redirected to other pages or posts. Each plugin has its own set up and unique features on how they accomplish this, so it is important to read the documentation from the plugin author.
Another way is to manually make the 301 redirects by editing your .htaccess file. This is more complicated and involved so we have a guide on how to do this here if you are interested and would prefer to not use a plugin.