Shopify: Redirect Old or Deleted Product URLs to Avoid 404 Errors
Fix broken links after deleting products or changing handles using URL redirects.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
When a product or page is deleted or its URL handle changes, old links give 404.
Create a redirect
- In your Shopify admin, open Online Store > Navigation > URL Redirects (menu names can change).
- Enter the old path, such as
/products/old-name, and the new path. - Save, then test the old address.
Bulk changes
Shopify allows importing redirects from a CSV file. Check Shopify's documentation for the current format.
Find broken links
Use Google Search Console's Pages report and a link checker. See our 404 guide.
Tips
Redirect to the closest matching page, not always the homepage. Avoid chains of redirects.
Related guides
- YouTube Video Embed Not Working or Showing an Error on Your Website
- WordPress XML Sitemap Gives 404 or Is Not Generating
- Changed the WordPress Address (URL) and Now the Site or Login Is Broken
- wp-config.php Explained: The Settings That Matter and How to Edit Them Safely
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.