Skip to main content

Can I import multiple redirects simultaneously? (New Redirects)

If you've got a long list of redirects, it might be convenient to import them all at once. You can do this in the Redirects module, through by or supplying a file to our Support department ([email protected]). The file that you're supplying needs to meet a few conditions. Download the template (CSV version). It needs to be a .CSV (CSV YTF-8 (Comma delimited)) or a .JSON file and it needs to contain the following columns:

id

type

url

useConjugations

useCustomConjugations

terms

conjugations

categoryId

attributeId

Replacements

1

Keyword

/service/

FALSE

FALSE

openingstijden;;help

2

Keyword

/contact/

TRUE

TRUE

telefoonnummer

telefoonnummers

1

3

Attribute

/[ae-brand]/

FALSE

FALSE

3

  • Only use a value for volgorde when there is an existing Redirect that you need updated.
    ​

  • In type, you define which kind of redirect it is. This is either a search phrase, Keyword, or based on the search phrase that matches the value of an Attribute.
    ​

  • Under terms, fill in the search term for which you want to set up a redirect for the type Keyword.
    Use ;; to divide the search terms from each other.
    ​

  • If you choose a redirect based on an attribute, you can leave the terms field empty. In that case, fill in the attribute ID of the attribute for the redirect under attributeiD.
    ​

  • Fill in the URL path (without the domain) under url.
    ​

  • For useConjugations, enter FALSE if you do not use conjugations for the redirect and TRUE if you do use conjugations for the redirect.
    ​

  • When you want to choose which conjugations are used, fill in TRUE under useCustomConjugations. Then fill in the conjugations you want to use under conjugations. If not, fill in FALSE
    ​

  • Next, fill in the category ID of the category in which the redirect should be triggered under categoryId.
    That means that visitors can only be redirected if they're in this category while searching for the term. This works with the inheritance principle: the redirect will be triggered in all child categories.
    ​This highly depends on your set-up of where the search bar is active (Root/Storeview or category-specific).
    ​
    ​When you want the redirect to work for all categories, leave this field empty.

  • Replacements is only used when you want to replace a value, used as url-value, with a specific urlpath. For example brand 'Homemade' is used in the url-path as 'home-made'

You can find the category ID in the Categories submodule. The Category ID is behind the name of the selected category.

Did this answer your question?