Shopify URL handles

How to change a product URL handle in Shopify (and keep the old link working)

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)

Change handles in bulk

Change one handle in the admin

  1. In your Shopify admin, open Products and click the product (collections, pages and blog posts work the same way).
  2. Scroll to Search engine listing and click the pencil icon.
  3. Edit URL handle. Use lowercase letters, numbers and hyphens; spaces aren’t allowed.
  4. Leave “Create a URL redirect” ticked so the old address sends shoppers and Google to the new one.
  5. Click Save, then open the old address to check it lands on the new page.

Change many handles at once

Shopify’s admin changes one handle at a time, and a product CSV can’t rename handles (it makes new products). The URL Handle Changer loads your handles from one GraphiQL query, cleans them up by rule or from your list, checks for clashes, and writes productUpdate, collectionUpdate, pageUpdate or articleUpdate batches with redirectNewHandle: true. With redirectNewHandle: true, each of the four mutations adds a URL redirect from the old path, listed in Content › Menus › URL redirects.

What a handle change does to SEO

  • The page gets a new address. With the redirect, Google follows it and moves the old page’s signals over in time.
  • Shopify’s Help Center warns: don’t edit a handle too often, or the item might not show in search results for a while.
  • Change a handle twice and you get a chain (a → b, then b → c). Shopify keeps both redirects; it doesn’t merge them. Pick the final handle the first time.
  • Redirects only work from broken addresses. If something else now uses the old handle, the redirect is ignored.

Redirects catch old links, but update your own menus, theme links, emails and ads to the new address so shoppers don’t take the extra hop.

Questions

Does changing a handle break my old links?

Not if a redirect is made. In the admin, keep “Create a URL redirect” ticked. In GraphQL, set redirectNewHandle: true. Without it, the old address shows “404 Page not found”.

Can I change the handle back later?

Yes. Changing a handle back adds no redirect from the newer handle, so links to the newer address stop working, and the first redirect stays in your list (it does nothing while the old address works again).

More guides