How to redirect URLs on WordPress with the Redirection plugin

Redirection is an important tool to preserve your SEO ranking and visitor experience. It is most commonly used to send people to the correct page after a URL has changed, or a page has been deleted. If you don’t have redirection, the person or search engine will get a 404 (page not found) error.

WordPress does not have built-in support for automatically redirecting visitors after a URL has changed. You need to install a plugin that manages the redirection for you. Some SEO tools like Yoast have redirection support, but only in the paid premium version. Fortunately, there is a good plugin called Redirection by John Godley that allows you to manage redirection for free.

Instructions

  1. Install and activate the free Redirection plugin by John Godley

    Redirection is a popular (and free) redirect manager for WordPress. It enables you to automatically send people to the correct page if they go to an old page that has been deleted or renamed.

  2. From the side menu, go to Tools > Redirection to finish the setup

    You need to complete the initial setup after activating the plugin.Screenshot of the setup page of the Redirection plugin. The page explains the purpose of the plugin, which is to send people from one URL to another URL. The bottom of the page has a button to start the setup.

  3. Click Start Setup on the bottom to get to the Basic Setup screen

    Screenshot of the Basic Setup screen of the Redirection plugin. The screen has three checkboxes to 1) Monitor permalink changes, 2) Keep a log of redirects, and 3) Store IP information. The checkbox to store IP information is not checked because it is a potential privacy issue, but the other options are checked.

  4. Select whether to automatically create a redirect if you change the permalink of a page or post (recommended)

  5. Select whether to keep a log of all redirects and 404 errors (recommended)

    This is useful so you can fix any issues that arise.

  6. Select whether to store IP information for redirects and 404 errors

    If you select this option, the plugin will store the IP address of visitors who trigger a redirection or 404 error (page not found).

  7. Import existing redirections to you can manage them (optional)

  8. Test your REST API, and then click Finish Setup

    If you get a failure, try it again. Otherwise review any errors and resolve.
    Screenshot of the REST API test screen of the Redirection plugin. It shows a test in progress as it checks connectivity to the WordPress REST API.

  9. Wait for setup to show Progress 100% and click Continue

    Screenshot of the setup progress indicator of the Redirection plugin. It shows progress of 100% with a Continue button.

  10. Click Continue to import redirects (if you selected this option)

  11. Click Ready to Begin

    Screenshot of the Installation Complete screen of the Redirection setup.

  12. Review options

    You will land on the Options section after installation. Review options and make any changes.

  13. Click Redirects near the top of the page

  14. Review the imported redirects

    If you imported any redirects during the setup process, review them now. Each line contains the source URL (the old URL you want to redirect from) and the target URL (the correct destination they should go to).

  15. Scroll down and look for the Add new redirection section

  16. Enter the source URL

    This is the URL you want to redirect from, i.e., the old URL.
    Screenshot of the Add New Redirect panel in the Redirection plugin. The panel has a text box for the source URL, a dropdown box to configure parameter handling, a text box for the target URL, and a dropdown to select the group.

  17. Enter the target URL

    This is the path to the new page they should be redirected to.

  18. Click Add Redirect

    The new redirect will be added to the table.

  19. Hover your mouse over the new redirect and click Check Redirect

  20. Click Log on the menu near the top of the page

    This will show you a log of all recent redirects, including the one you just tested.

Reference

License

Feel free to remix this content for your website.

Licensed under CC BY 4.0

Leave a Reply