Shopify URL handles

Why changing the handle in a Shopify product CSV creates a new product

What you’ll need

  • Shopify’s free GraphiQL app (with read_products, write_products (pages: read_online_store_pages, write_online_store_pages; blog posts: read_content, write_content) access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

  • Your new handles, or the clean-up you want (for example removing copy-of- and -1 from duplicated products)

Rename handles without a CSV

How the importer matches rows

Shopify’s Help Center calls URL handle the unique identifier for each product. With “Overwrite products with matching handles” ticked, a row whose handle matches an existing product updates it; a row with a handle Shopify hasn’t seen creates a new product. There’s no ID column to match on, so a renamed handle always looks like a new product.

What goes wrong

  • A duplicate product with the new handle, often with no images or inventory if those columns were empty.
  • The old product still live at the old address, so customers can buy either.
  • No redirect, because nothing was renamed.
  • Reviews, orders and analytics stay attached to the old product.

Rename handles the safe way

  1. Delete any duplicates the CSV created (check the handle and created date first).
  2. Load your current handles into the URL Handle Changer with one GraphiQL query.
  3. Paste your old and new handles, or tick a clean-up rule, and check the changes.
  4. Download the backup, run the batches in the GraphiQL app, and paste the responses back to confirm each change.

Already renamed by CSV?

If you deleted the old products and kept the new ones, the old addresses are now broken. Build a redirects CSV with Redirect from (/products/old-handle) and Redirect to (/products/new-handle), and import it in Content › Menus › URL redirects › Import. The Handle Changer and the Redirect Map Builder both write that file.

More guides