Redirect old product URLs when a product handle changes

When a product's URL handle changes, create a URL redirect from the old product URL to the new one, so links, ads and search results keep working. Bulk edits, imports and apps change handles without offering a redirect.

One trigger, built-in Shopify actions only, no other app needed. Nothing in it is specific to a store, so it works as soon as it is imported.

The workflow in Shopify Flow: Redirect old product URLs when a product handle changes
The complete workflow as it looks in Shopify Flow.

What it needs

  • The app's permission Product, Variant & Collection Data Access. See Permissions and data access.
  • Nothing else: turning the workflow on switches the trigger Product Handle Changed on in the app.

Install the Workflow Trigger Extensions app and grant Product, Variant & Collection Data Access on its Permissions page. Turning this workflow on switches the trigger on in the app.

Get the workflow

  1. Download the .flow file attached at the bottom of this page.
  2. In your Shopify admin open Flow, click Import and choose the file.
  3. Check the steps, then click Turn on workflow.

The file is an export from Shopify Flow itself. Do not edit it by hand; change the workflow in Flow after importing it.

How it works

  1. Product Handle Changed starts the workflow and hands it oldHandle and newHandle.
  2. Create redirect URL redirects /products/{{oldHandle}} to /products/{{newHandle}}.

Make it yours

  • Add a condition on product.status Equal to ACTIVE to skip drafts that never had traffic.
  • Add Send internal email after the redirect if your SEO team wants to hear about moved pages.

Next steps