Shopify Redirects from Excel table

Excel Sheet Name

Redirects

Summary

Redirects (also known as 301 Redirects) are used to send site visitors from one URL to another – when migrating from your old e-Commerce platform, or when renaming Handles.

Columns Available For Export And Import

Column Allowed Values Description / Example Value
ID Number ID is automatically generated number by Shopify to identify the item.
It is filled in by an Export.
When creating new Redirect, leave this value empty.

44920047631
Path Any characters allowed in a URL It is the “path” part of your old URL.

Path is used as a secondary key to identify the Redirect. If the ID is not found, then the app will look for the existing Redirect by the Path value.

The Path cannot be empty, and cannot be equal to Target.

Use it without the server name. For example, if your old URL is https://yourstore.com/your-old-path/to/somewhere, then your redirect Path should be:

/your-old-path/to/somewhere
Command
  • NEW
  • UPDATE
  • REPLACE
  • DELETE
When importing Redirect row – tell the app, what to do with it:

  • NEW: will try to create a new Redirect with the provided details. If such Redirect will already exist (with the same ID or same Path), then the result will be Failed.
  • UPDATE: will try to find existing Redirect, and update it with data from the row. If such Redirect will not be found, then it will create new.
  • REPLACE: at first, if such Redirect with provided ID or Path exists, then the app will delete it. After that, it will create a new one. If an existing Redirect will not be found, then still the app will create a new one. The difference from UPDATE is that it will not keep any of columns, which were not included in the import file since the Redirect will be deleted and re-created.
  • DELETE: the app will delete the existing Redirect, which is found by ID or by Path. If such Redirect will not be found, then the result will be Failed. This DELETE command is very handy for deleting Redirects in bulk.

If no Command is specified, then the app will assume the UPDATE command.

UPDATE
Target Any characters allowed in a URL The target URL or target path of the new location.

it can be the full URL like “https://anotherstore.com/products/your-new-product-handle“, or if the redirect should send visitors to the current store, then you can put just the new path part, like “/products/your-new-product-handle“.

The Target cannot be empty, and cannot be equal to Path.

/products/your-new-product-handle