Share your feature requests anytime
Search icon Our Plugins

Import and export

Overview

Export CSV saves all redirects to a file; Import CSV adds the redirects of a file. Both are in RB Plugins → Redirection → Redirects.


The format

One redirect per line, comma-separated, with an optional header line:

source,target,code,match_type,enabled,note
/old-pricing,/pricing,301,exact,1,Old menu link
/shop/,/store,302,starts,1,
^/blog/(\d{4})/(.+)$,/$2,301,regex,1,Old date-based permalinks
/discontinued-product,,410,exact,1,
Column Required Values
source yes an address or a pattern
target yes, except for 410 /path or a full URL
code no — 301 301, 302, 303, 307, 308, 410
match_type no — exact exact, starts, contains, regex
enabled no — 1 1 or 0
note no any text; put it in quotes when it contains a comma

The easiest way to see a correct file is to export once.

A redirect to a post is exported with the post’s current address.


Importing

  • A redirect that is already there (the same source and kind of rule) is skipped, not doubled — importing the same file twice adds nothing twice.
  • A line with a mistake — an invalid pattern, a missing target — is skipped and reported with its line number; the other lines are imported.
  • Imported redirects are marked Imported.

Next steps

Simplify your WordPress workflow!

Build faster, cleaner, and more reliable WordPress websites using lightweight plugins designed for real-world workflows.

Get started now