To properly implement and test 301 redirects on your WordPress website
Ideal outcome
The page you want to redirect no longer displays a 404 error or the old content and is now redirecting users and search engines to the new URL. Another outcome would be when other websites make typo errors in linking to your website, you can redirect the wrong backlinks to the correct URL
Why it matters
Having users or search engines experience either 404 (Page Not Found) errors or outdated content should be avoided as much as possible
Before you start
This exact process only applies to self-hosted WordPress sites
Key steps
27 steps
What is inside
33 headings
1Environment setup10
Log in to your WordPress Admin Panel.
On the sidebar to the left, hover ‘Plugins’ ‘Add New.’
On the top right corner type ‘Redirection’ on the search box.
Click ‘Install Now’ > ‘Activate.’
On the sidebar to the left, hover ‘Tools’ and click ‘Redirection’:
You will be redirected to the ‘Welcome to Redirection’ page, click ‘Start Setup’ button:
Next, you will see the ‘Basic Setup’ page:
Next, the Redirection plugin will check if there is no other plugin that will affect its functionalities. Most of the time, it will appear as ‘Good’ then you’ll be able to proceed to the ‘Finish Setup’ button. If REST API is ‘Disabled,’ you might need to disable the plugin causing it or get support to get it enabled.
Wait for the progress bar to reach 100% and click ‘Finished.’
Next, we’ll go over three very common redirect scenarios — click on the links below to the one that fits your needs:
2Redirecting a single page4
On the sidebar to the left, hover ‘Tools’ and click ‘Redirection’:
Below the ‘Add new redirection,’ you can fill up the fields under it:
Remove the last forward slash (If it exists)
Click the gear icon and Input the following fields. When you’re done click “Add Redirect”:
3Redirecting an entire subpath to a specific page4
On the sidebar to the left, hover ‘Tools’ and click ‘Redirection’:
Below ‘Add new redirection,’ at the right side of the ‘Source URL’ field, click the ‘URL options/Regex’ toggle and check ‘Regex’:
Click the gear ( ) icon next to the blue “Add Redirect” button.
Input the following fields and when you’re done click “Add Redirect”:
4Moving URL structure5
Log in to your WordPress Admin Panel.
On the sidebar to the left, hover “Tools” and click “Redirection”:
Under “Add new redirection”, tick the “Regex” checkbox, and input:
Click the gear () icon next to the blue ‘Add Redirect’ button.
Input the following fields and when you’re done click ‘Add Redirect’:
5Testing if redirects are working properly5
On your browser, go to Browseo
On the input box on the top left, insert the URL you want to test → Click “Browse”
On the input box on the top left, insert the URL you want to test → Click “Browse”
When the tool loads the results, you should be able to see under “Response” the redirects one by one, and what kind of redirect it is.
If you followed this SOP to implement the redirect you should be seeing “301 Moved Permanently”.