Can I import redirects?

Last update: 21 March, 2017

Yes, since Yoast SEO Premium version 1.1, you have the option to import your redirects from popular redirect plugins, like Redirection, or from the .htaccess file.

From SEO → Tools → Import & Export, you can find the option to import redirects.

Import from a supported redirect plugin

1
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
2
The 'SEO' settings will expand providing you additional options. Click on 'Tools'.

If you do not see this option, please enable advanced features.

Yoast SEO > Tools

3
Click on 'Import and Export'.

4
Select the 'Import redirects' tab.
Yoast SEO > Tools > Import and Export > Import redirects
5
Select the redirect plugin your using.
6
Click 'Import redirects'.
CSV or spreadsheet importing is not available at this time. However, the Redirection plugin offers a CSV import which can then be imported into Yoast SEO Premium.

Import From the .htaccess file

1
Log in to your WordPress website. When you're logged in, you will be in your 'Dashboard'. On the left-hand side, you will see a menu. In that menu, click on 'SEO'.
2
The 'SEO' settings will expand providing you additional options. Click on 'Tools'.
Yoast SEO > Tools
3
Click on 'Import and Export'.

4
Select the 'Import redirects' tab.

Yoast SEO > Tools > Import and Export > Import redirects

5
Copy the contents of the .htaccess file that contains the redirect commands into the white box. Redirects must be in one of the following formats:

#Plain Redirect Form
Redirect [type of redirect, e.g. 301] [source] [target]</dd>
 	<dd>Example: Redirect 301 /family/ /school/
In this example, if a user lands on /family/ (which is the source) they are redirected to /school/ (which is the target).</dd>
 	<dd>#REGEX Redirect Format
RedirectMatch [type of redirect, e.g. 301] [source] [target]
6
Click 'Import .htaccess'.

Was this article helpful? ·