Case study 12: Adding, updating, and deleting Instant Site redirects with import and export

This article is part of the catalog import and export section and guides you through managing URL redirects for Instant Site with a CSV file.

You can add, update, or delete Instant Site redirects using catalog import and export. For example, if you’re moving from another ecommerce platform, or if you want to make bulk changes to all redirects on your site.

Let’s perform three tasks:

  1. First, add new redirects for your site and store.
  2. Second, update redirects (say, you want to fix a typo).
  3. Third, delete existing redirects that you no longer need.

Creating new redirects

Before you start: Make sure you have a list of all the pages on your site that you want to add redirects for. You can use a third-party SEO tool that crawls your site automatically, providing you with a list of broken links. If you’re moving from another ecommerce platform, you can export this information before you leave.

To create new redirects for your Instant Site and store:

  1. In your store admin, add your products and categories manually or using import.
    URLs are created automatically as the product is added to your store. You cannot set URLs for new products yourself.
  2. Export your store catalog or specific products, then open the CSV file in your preferred spreadsheet editor.
  3. Locate the “url” column at the end of the file for “product” and “category” rows. It contains URLs of products and categories in your storefront:

    Redirects import 1.png

  4. Create a new file in your spreadsheet editor.
  5. Enter “type” in the first cell. Then enter “site_redirect” in the row below it:

    Redirects import (2).png

    Now you’ve specified that the second row is about a redirect.
  6. In the next column, enter “site_redirect_from_url” and the old URL. In our example it’s https://teststore.shopsettings.com/products/Blue-Pants-p538396664:

    Redirects import 2.png

  7. Then add “site_redirect_to_url” in column C and fill it out with an existing URL from your store that you want to redirect to (see the “url” column in the file you’ve exported in Step 2 or simply open a product page in your storefront and copy the URL from the browser’s address bar). In our example, it’s https://teststore.shopsettings.com/products/Navy-Pants-p538396664:

    Redirects import 3.png

  8. Now add a new “site_redirect” row below and repeat the process for another pair of URLs.
  9. After you’ve listed all the redirects you want to create, save the file as .csv to your device.
  10. Upload the file on the Catalog → Data Import & Export page in your store admin.

That’s it! The redirects are now added to your Instant Site. They will appear on the Instant Site Redirects page in your store admin.

You can find a sample “new store redirects” file in the article attachments.

Changing existing redirects

To change existing redirects for your Instant Site and store:

  1. Go to the Instant Site Redirects page in your store admin, tick the redirects you want to edit and click Import or Export Redirects → Export Redirects.
  2. Open the CSV file in your preferred spreadsheet editor. You will see four columns there: “type”, “site_redirect_internal_id”, “site_redirect_from_url”, and “site_redirect_to_url”:

    Redirects import (5).png

    URLs are exported in the relative form, so /products/Navy-Pants-p538396664 is actually https://teststore.shopsettings.com/products/Navy-Pants-p538396664 on your Instant Site.
  3. Make edits to URLs in the “site_redirect_to_url” column where needed.
  4. Save the file as .csv to your device.
  5. Upload the file on the Catalog → Data Import & Export page in your store admin.

That’s it! You’ve updated redirects for your Instant Site. They will appear on the Instant Site Redirects page in your store admin.

Deleting existing redirects

You can easily delete all your redirects or selected ones right from the store admin.

To delete redirects for your Instant Site and store:

  1. Go to Instant Site Redirects in your store admin, tick the redirects you want to delete and click Import or Export Redirects → Export Redirects.
  2. Open the CSV file in your preferred spreadsheet editor. You will see four columns there: “type”, “site_redirect_internal_id”, “site_redirect_from_url”, and “site_redirect_to_url”.
  3. Add the “change_strategy” column to your file and fill it out with the “delete_only” value for all the rows with redirects that you want to delete:

    Redirects import (6).png

    You can use the “change_strategy” column with the “delete_only” value for deleting redirects only (and not for deleting products, categories, etc.)
  4. Save the file as .csv to your device.
  5. Upload the file on the Catalog → Data Import & Export page in your store admin.

That’s it! You’ve deleted redirects from your store. They will no longer appear on the Instant Site Redirects page in your store admin.

Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
0 out of 0 found this helpful
We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.
Accept cookies Decline