Skip to main content

How to import and export cross-links

Advanced SEO Suite extension allows you to import and export cross-links, which might reduce manual work during store migration or can be used as backups.

Navigate to Marketing -> Cross-links and click Import/Export links button.

import export cross-links menu

Import/Export cross-links menu

Click Choose file button in the Import links (.csv) configuration. Then, locate the file in your local system and select it. The file must be in .csv format to be interpreted correctly and should be created using UTF-8 encoding with a comma as the field delimiter.

note

The keyword column is a required field. If it is not filled in, the CSV file will not be accepted.

CSV columns

ColumnRequiredDescription
link_idNoExisting record ID. If provided, the row is updated; otherwise a new record is created.
keywordYesThe word or phrase that becomes a hyperlink.
urlConditionalTarget URL. Required when link_type is url or absent. Leave empty for product and category types.
url_titleNoTooltip text shown on hover.
url_targetNoLink target attribute (_self, _blank, _parent, _top). Defaults to _self.
is_nofollowNo1 to add rel="nofollow", 0 otherwise.
max_replacementsNoMaximum number of occurrences replaced on a single page (0 = unlimited).
sort_orderNoSort priority when multiple links share the same keyword.
occurenceNoDirection of keyword search (1 = first, 2 = last, 3 = all).
is_activeNo1 to enable the link, 0 to disable.
store_idNoStore view ID (0 = all stores). Separate multiple IDs with /.
link_typeNourl (default), product, or category. See link types.
entity_idConditionalProduct or category ID. Required when link_type is product or category.

When the file is selected (you will see the name of the file near to the Choose file button), click Import links button to upload the file to Magento system. If uploaded successfully, the message [Quantity] records were inserted or updated appears.

tip

Correct example of .csv file can be downloaded by clicking Example of csv file link.

note

CSV files exported before the link_type / entity_id columns were introduced import correctly — rows without these columns are treated as url type.

Click Export links button in the Export links (.csv) configuration to write all cross-links in the file and download it. The file has the name autolink.csv and will be renamed if there is the same named file in the download directory. The exported file includes the link_type and entity_id columns, so ID-based links can be re-imported without modification.