You can import and export redirects using the Import/Export page, accessed from the Import/Export option in the top menu.
From here you can import:
- CSV files – just simple redirects, with no matches or actions
.htaccessfiles – 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
.htaccessfile – supports matches but not actions
- Nginx rewrite rules file – supports matches but not actions
- Redirection JSON file – full support for all options
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 is a 0 to indicate no regular expression, and a 1 to indicate a regular expression.
Apache .htaccess files
.htaccess files can be imported. Note that only redirects that match directly to Redirection redirects will be imported.
Nginx Rewrite Rules
rewrite.rules files can be imported. Note that only redirects that match directly to Redirection redirects will be imported.
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.