Import and Export Redirects

You can import and export redirects using the Import/Export page, accessed from the Import/Export option in the top menu.

import_export.png

From here you can import:

  • CSV files – just simple redirects, with no matches or actions
  • Apache .htaccess files – supports matches but not actions
  • Redirection JSON files – full support for all options

You can also import from the following plugins:

  • Simple 301 Redirects
  • SEO Redirection
  • Safe Redirect Manager
  • WordPress old post slugs

Additionally you can export to:

  • CSV file – just simple redirects, with no matches or actions
  • Apache .htaccessfile – supports matches but not actions
  • Nginx rewrite rules file – supports matches but not actions
  • Redirection JSON file – full support for all options

CSV Files

These are the simplest file format and can be created using any spreadsheet such as Excel or Google Sheets.

The format of the CSV file is as follows:

source URL,target URL

This can optionally be followed with:

regex,http code

Where regex is a 0 to indicate no regular expression, and a 1 to indicate a regular expression.

For example:

/old-url,/new-url

/old-url/.*,/new-url,1,301

Apache .htaccess files

Standard Apache .htaccess files can be imported. Note that only redirects that match directly to Redirection redirects will be imported.

Nginx Rewrite Rules

Standard Nginx rewrite.rules files can be imported. Note that only redirects that match directly to Redirection redirects will be imported.

Redirection JSON

Redirection has it’s own file format using JSON. This is the most ‘accurate’ format in that it will contain all details about your redirects, including group information, statistics, and logs.

CSV Import Problems

It is important to note that when using CSV files:

  • CSV means the columns are comma separated. This does not include tabs or semicolons
  • Columns can be enclosed within quotes, but this should not extend to the comma separating the columns

If you are having difficulty exporting a compatible CSV file then please double-check that you are exporting as a comma-separated file.

search previous next tag category expand menu location phone mail time cart zoom edit close