?>

How to Export/Import Redirects

Do you want to know how to export redirects from the WordPress Redirection plugin?

  1. Login to your “old” wordpress install and select redirection from the Tools menu.
  2. Select “modules” from the top navigation bar
  3. Select CSV or .htaccess from the sub-menu that appears under the redirection module you are using.
    1. This will download a csv of all your redirections , which you can import into Redirection on a separate wordpress install.. OR
    2. Display the htaccess equivalent, which you can copy and paste into a new .htaccess file, or also use to upload into Redirection.
  4. Note: I do not know of a method to only export a specific group of redirects.

 

export redirects into Redirection Plugin

Now that you have an export… Here is how to import redirects into the WordPress Redirection Plugin:

  1. Login to your “new” wordpress install and select redirection from the Tools menu.
  2. Select “options” from the top nav bar
  3. Under the import section, select the file containing the redirects you wish to import.  You can do any of the following:
    1. CSV import – This can be an export from redirection, or you can create a CSV file from excel where column A is the source (url to be redirected) in a local URL format… e.g.  /url-t0-redirect (NOT http://www.domain.com/url-to-redirect) …   and column B contains the target url you wish to send visitors to.  You can use a full URL here, or a relative URL.  I prefer relative as this allows your redirects to work in staging environments, etc.. as redirection will automatically append the domain name when performing the redirect.  With this import, you can also utilize regex.
    2. .htaccess import – You can import directly from old htaccess files.  Note, this works for redirects, not rewrites…
  4. Select the group you wish to import the redirects into. We often suggest creating a dated group for site migrations, etc.. as you can more easily delete them if something messes up, and you can better monitor for issues if things are segmented.
  5. Select Upload…  At this point it will upload and show you a confirmation of the number of redirects imported.
Import redirects into WordPress Redirection Plugin

If you have any questions about the WordPress Redirection plugin or know of any other tricks for doing this, please share!


Comments


  1. I’ve followed the instructions for importing redirections with a csv file. It says the redirections are uploaded, but they don’t show up in the list?

    Reply

  2. Hey Sue, are you sure there isn’t any filters in place for group, etc.. Note, you have to go back and view all redirections, they don’t populate a list on the page when you import.

    Reply

Trackbacks

    Leave a Reply

    Get Started

    800-650-0820

    Hive Digital can help you get the most out of your website. Simply fill out this form, and we'll get back to you with a free quote. No risk, no obligation.

    Hive Digital respects your privacy. We will never spam you or sell your information to any third party. Privacy Policy


    Subscribe via Email

    Subscribe to receive notifications of new posts by email.

    Follow Us on Twitter


    Get Started

    800-650-0820

    Hive Digital can help you get the most out of your website. Simply fill out this form, and we'll get back to you with a free quote. No risk, no obligation.

    Hive Digital respects your privacy. We will never spam you or sell your information to any third party. Privacy Policy

    [X] Close