Import and export links with CSV

Export your AriLinks rules to a CSV file, edit them in a spreadsheet and import them on the same site or another one.

  • How-to guide
  • AriLinks
  • 3 min read
  • Updated
  1. Go to AriLinks→Import / Export and click Download CSV under Export to CSV. You get a file named arilinks- followed by today's date, with every link rule and its click count.

  2. Step 2: Edit the file

    Open the file in a spreadsheet and add, change or remove rows. Keep the first row of column names, with keyword as the first column. Save it as CSV in UTF-8.

  3. Step 3: Import the file

    1. On the site that should receive the links, go to AriLinks→Import / Export.
    2. Under Import from CSV, choose the file.
    3. Choose what happens when a keyword already exists: Skip keywords that already exist (the default) or Update keywords that already exist.
    4. Click Import.

    You see a summary such as Import finished: 40 added, 2 updated, 3 skipped. Rows without a usable keyword (at least 2 characters) or address are skipped. A file can have up to 5,000 rows and be up to 2 MB.

Columns

Only keyword and url are required. The first row is read as column names when its first column is keyword; the other columns can then be in any order. Without that row, columns are read in this order: keyword, variants, url, nofollow, new_tab, case_sensitive, max_per_post, status, only_posts.

ColumnWhat it holdsIf empty or missing
keywordThe word or phrase that becomes a link.Row is skipped.
variantsOther forms of the keyword, separated by |.No variants.
urlThe target address: a full URL or a path such as /category/running-shoes/.Row is skipped.
target_postThe ID of the target post or page.The link uses url.
post_typesContent types the link is used in, such as post,page.All content types enabled in Settings.
nofollowAdd rel="nofollow".Off.
new_tabOpen in a new tab.Off.
case_sensitiveMatch upper and lower case exactly.Off.
max_per_postHow many times the keyword may be linked on one page, 1 to 10.1.
statusActive or paused.Active if the column is missing; paused if the column exists but the cell is empty.
only_postsPost or page IDs the link is limited to, separated by commas.Used everywhere.
sourceWhere the rule came from: manual, editor, title, focus or import.import.
clicksClick count. Exported for your information and ignored on import.Not used.

For nofollow, new_tab, case_sensitive and status, the values 1, yes, true, y and on mean on; anything else means off.

keyword,variants,url,nofollow,new_tab,case_sensitive,max_per_post,status
running shoes,running shoe|jogging shoes,/category/running-shoes/,0,0,0,1,1

A target_post ID is only kept when that ID on the new site has the same address as the url in the file. Otherwise the link points to the url as a custom URL. To make such a link follow the page again, edit it and choose A page on this site.

When you update existing keywords, the rule keeps its original source and click count.

Spreadsheet formulas

On export, a keyword or variants cell that starts with =, +, - or @ gets a leading apostrophe so spreadsheets do not run it as a formula. The import removes that apostrophe again.

Still stuck?

Our helpdesk answers on working days, Norwegian time. Include your WordPress version, PHP version and the page address.

Submit a ticketor email info@arihub.com