How to Import with the WordPress Plugin ‘Redirection’
Managing redirects is extremely important for today’s SEO since the quantity of 404 errors on your site that Google finds from internal or external links can influence your site’s ranking.
This is a tutorial on how to import a redirect map in WordPress using the ‘Redirection‘ plugin.
If you have a lot of redirects to manage, you can save a lot of time by using the import feature as follows:
1. Create a spreadsheet in Excel or Google Drive that lists the old URLs in column A and the new column URLs in column B.
2. Do a find and replace all and remove the domain, but not the trailing slash! For example, let’s say your spreadsheet starts out like this:[table colwidth="60%,40%"]
Old URLs, New URLs
We would perform a find and replace all of “http://www.example.com” — but not “http://www.example.com/” — to get something like this:[table colwidth="60%,40%"]
Old URLs,New URLs
3. If you are redirecting to the home page, as in the second example, make sure there is just a forward flash. Do not leave any cell blank.
4. If you are redirecting any URLs that have query strings in them, such as the third example, then you have to take one additional step. The question mark character is a special character and won’t be recognized unless you use regular expression. Do a find for “?” and replace all with “(?)”, not including the quotation marks. Thus your final spreadsheet will look as follows:[table colwidth="60%,40%"]
Old URLs,New URLs
5. Save your spreadsheet as a CSV.
6. From your WordPress Dashboard go to Tools > Redirection > Options, and import the CSV. ‘Redirection’ will automatically detect the existence of regular expressions and check the box accordingly. Your newly imported redirects should look like this:
7. Test and adjust as necessary!
If all of that made sense to you, congratulations! But if you have reached this last paragraph here, still scratching your head … fear not. Volume Nine can SEO audit your website, find all those pesky 404s and tell you exactly how to fix them. Contact us today!