Skip to content

SEO Settings · URL slugs

Editing Shopify Product, Collection, Page, and Blog URLs

Shopify uses four fixed URL paths: /products/HANDLE, /collections/HANDLE, /pages/HANDLE, /blogs/BLOG-NAME/HANDLE. The fixed prefix is non-configurable. The HANDLE part is the editable slug, set in the resource editor under the URL handle field. Changing a handle while the resource is published creates an automatic 301 redirect — one of Shopify's highest-value defaults. One trap: image file names cannot be changed after upload2.

Published Verified 2026-05-22

The four fixed URL paths Shopify uses

Shopify's URL routing is opinionated. Every product lives at /products/HANDLE. Every collection lives at /collections/HANDLE. Every page lives at /pages/HANDLE. Every blog article lives at /blogs/BLOG-NAME/HANDLE (with the parent blog's own handle in the path). Merchants cannot change the /products/, /collections/, /pages/, or /blogs/ prefix. This is the source of the duplicate-URL pattern auto-canonicals were built for: a product is also reachable via /collections/foo/products/HANDLE when accessed through a collection.

Per Shopify's Optimize-site-structure doc2, "URLs use standard characters and a simple, readable structure." The fixed paths are a feature, not a limitation — they create platform-consistent URL patterns Google and AI shopping engines can predict and crawl efficiently.

The handle — the editable slug part

The URL handle is the editable component of every Shopify URL. It lives in the resource editor under URL handle (usually near the bottom of the Search engine listing panel or as its own field). Shopify auto-generates the handle from the resource's title at creation time, lowercasing the title and replacing spaces with hyphens. 'Linen Roman Shade — Natural' becomes 'linen-roman-shade-natural'. The merchant can edit the handle before or after creation. Best practice: review the auto-generated handle before publishing and edit if it's too long, contains stop words, or doesn't match the keyword intent.

Shopify's handle convention: lowercase letters, numbers, hyphens. The platform handles the transformation from the resource title automatically; the merchant only intervenes to refine. Per the Adding-keywords doc3, the platform warns that "customers won't click links that use keywords in a random way" — keyword-stuffed handles ('linen-roman-shade-natural-window-coverings-shop-online-2026') are explicitly bad practice.

The auto-redirect when you change a handle

When you change a handle on a published resource, Shopify automatically creates a 301 redirect from the old URL to the new URL. This is one of the highest-value default behaviours in Shopify SEO — it removes the most common cause of post-edit traffic drops on every other ecommerce platform. The auto-redirect fires only when the resource stays published through the change. If you unpublish the resource, change the handle, then republish, the auto-redirect does NOT fire and the old URL becomes a 404.

The safe sequence: keep the resource published; open the resource editor; change the handle; save. Shopify writes the redirect. Verify by visiting the old URL in a private browser window — it should 301 to the new URL automatically.

Image file names can't be changed after upload

Per Shopify's Optimize-site-structure doc, image file names cannot be modified after upload. This means the file name component of the image URL (the part after the Shopify CDN host and before the size variant suffix) is permanent once the image is in the media library. The implication: rename images to descriptive, keyword-friendly names BEFORE uploading. 'IMG_3847.jpg' becomes 'linen-roman-shade-natural-3847.jpg' before it ever touches the Shopify uploader. After upload, the only way to change the file name is to delete the image and re-upload — which breaks any external links to the image and resets the image's age signal.

The image URL pattern on Shopify is roughly cdn.shopify.com/s/files/…/<filename>.jpg. The filename is the SEO-relevant part — Google and image-search engines use it as one signal among many for image relevance. Alt text (which IS editable post-upload) is a separate, more important signal, but combining both is the default.

Slug best practice on Shopify

Five rules cover Shopify slug discipline. (1) Lowercase, hyphens, no stop words ('the', 'a', 'and' usually omitted unless meaningful). (2) Three to six words is the sweet spot — long enough to be descriptive, short enough to be readable. (3) Include the primary keyword once; resist stuffing it. (4) Keep slugs published from day one — the auto-redirect needs the resource to stay published through any later rename. (5) Audit slugs before launch, not after — slugs set during initial product setup are easier to fix than slugs that have accumulated backlinks and indexing history.

For the parallel rules on the title tag (60-char recommendation, 70-char max, store-name appendage), see /shopify-seo/title-tags/. For what Shopify does canonically when handle changes propagate, see /shopify-seo/canonical-tags/.