Create a Redirect When a Product Is Deleted
Deleting a product leaves a 404 wherever it was linked or indexed. This workflow creates a URL redirect from the deleted product's page to a collection or your catalog, so shoppers and search engines land somewhere useful.
How it works
4 steps to never leave a 404 behind when you delete a product
A product is removed from your store
A product is removed from your store
Look up the deleted product's handle and collection
Look up the deleted product's handle and collection
Continue only if a handle was found
Continue only if a handle was found
Redirect the old product URL in Shopify
Redirect the old product URL in Shopify
Ready to never leave a 404 behind when you delete a product
Get setup in 4 minutes.
FAQs
Why does it need a companion workflow?
Shopify's product deletion event only includes the product's ID, not its URL handle, so the handle has to be saved while the product exists.
Can I redirect to a similar product instead?
Yes. Store a replacement product handle in the record and redirect to it.
Does archiving a product need this?
No. Archived products keep their URL. This is only for deleted ones.
Personalize this template
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
never leave a 404 behind when you delete a product
4 min setup • Fully supported if you need help
