Your Shopify store’s URL structure is one of those things that seems trivial until you realise it affects every aspect of your SEO. Clean, descriptive URLs help Google understand your content, help users trust your links, and make your site architecture legible to both humans and crawlers. Messy, inconsistent URLs do the opposite.

Shopify imposes certain URL constraints that you cannot change — the /products/, /collections/, and /pages/ prefixes are fixed. But within those constraints, there is significant room to optimise. The URL handle (the part after the prefix) is entirely within your control, and how you manage collection paths, redirects, and canonical tags determines whether your URL structure helps or hinders your rankings.

This guide covers everything you can do to optimise your Shopify URL structure. If you are dealing with duplicate URLs specifically, our guide on fixing duplicate content on Shopify goes deeper on that topic. For the broader technical SEO picture, see our complete technical SEO guide.

Why URL structure matters for Shopify SEO

URLs serve three audiences: search engines, users, and other websites that may link to you. Each audience benefits from clean, descriptive URLs in different ways.

Search engine benefits

Google uses URLs as one of many signals to understand page content. A URL like /products/organic-cotton-t-shirt-navy immediately communicates the page topic, while /products/prod-12847-v3 communicates nothing. While URL keywords are a minor ranking factor, they contribute to overall relevance signals and help Google categorise your content correctly.

More importantly, clean URL structures prevent technical SEO problems. Consistent, logical URLs reduce duplicate content issues, simplify canonical tag management, and make your site easier for Google to crawl efficiently.

User trust and click-through rate

URLs appear in search results, and users scan them before deciding whether to click. A clean URL that matches the search query builds trust and can improve click-through rates. URLs that are long, garbled, or filled with parameters look suspicious and may deter clicks even when your page is relevant.

URLs also appear when users share links on social media, in emails, and in messages. A readable URL is more likely to be clicked than an opaque one, driving more referral traffic to your store.

Link equity and sharing

When other websites link to your products, they link to specific URLs. If you later change those URLs without proper redirects, you lose the link equity those backlinks were providing. A well-planned URL structure minimises the need for future changes, protecting your backlink investment over time.

Comparison of clean versus messy Shopify URLs and their appearance in Google search results
Clean, descriptive URLs appear professional in search results and build user trust before the click.

Step 1: Understand Shopify’s URL anatomy

Before optimising, you need to understand what Shopify controls and what you control. Shopify URLs follow a strict structure with fixed prefixes and configurable handles.

The fixed prefixes

Shopify enforces these URL patterns for different content types:

  • /products/[handle] — Product pages
  • /collections/[handle] — Collection pages
  • /pages/[handle] — Custom pages
  • /blogs/[blog-handle]/[post-handle] — Blog posts
  • /collections/[handle]/products/[handle] — Products accessed via collections

You cannot remove these prefixes on standard Shopify. They are part of the platform’s routing architecture. Some store owners worry that having /products/ in every product URL puts them at a disadvantage, but since every Shopify store shares this structure, it does not create a competitive difference within the platform.

The configurable handle

The handle is the part of the URL that you control. When you create a product called “Men’s Organic Cotton T-Shirt - Navy Blue - Regular Fit,” Shopify auto-generates the handle mens-organic-cotton-t-shirt-navy-blue-regular-fit. This is too long and contains unnecessary words. You can (and should) edit it to something like organic-cotton-t-shirt-navy.

How Shopify generates handles

Shopify creates URL handles by converting the product title to lowercase, replacing spaces with hyphens, removing special characters, and stripping certain common words. This automatic process often produces handles that are technically functional but SEO-suboptimal. Always review and edit handles before publishing new products.

Step 2: Write clean, keyword-rich URL handles

The handle is your primary URL optimisation opportunity on Shopify. Here are the principles for writing effective handles.

Keep handles short and descriptive

Aim for three to five words that describe the product or page clearly. Remove articles (a, the, an), conjunctions (and, or, but), and prepositions (in, on, for) that add length without adding meaning.

Good handles: organic-cotton-t-shirt-navy, wool-blend-jumper-charcoal, leather-crossbody-bag

Bad handles: mens-premium-organic-cotton-crew-neck-t-shirt-in-navy-blue-regular-fit-2026

Include your primary keyword

Your URL handle should include the main keyword you want the page to rank for. If your product page targets “organic cotton t-shirt,” the handle should contain those words. Do not stuff additional keywords into the handle — one clear keyword phrase is sufficient.

Use hyphens, not underscores

Shopify uses hyphens by default, which is correct. Google treats hyphens as word separators but treats underscores as word joiners. organic-cotton is read as two words; organic_cotton is read as one. Stick with hyphens.

Be consistent across your catalogue

Establish a naming convention and apply it consistently. If your first product handle is organic-cotton-t-shirt-navy, do not make your second tshirt-organic-white. Consistency helps users and search engines understand your URL patterns and makes your site feel professional.

A good convention for product handles is: [material]-[product-type]-[colour] or [product-type]-[distinguishing-feature]. Choose a pattern that works for your catalogue and stick with it.

Avoid dates, IDs, and unnecessary modifiers

Do not include years, SKU numbers, version identifiers, or promotional terms in handles. summer-sale-organic-tshirt-2026-v2 will look outdated and irrelevant within months. Keep handles evergreen so they remain accurate and effective over time.

Side-by-side comparison of optimised versus unoptimised Shopify URL handles
Optimised URL handles are short, descriptive, and include the primary keyword without unnecessary words.

Step 3: Handle collection-based product URLs

One of Shopify’s most significant URL challenges is the dual URL problem created by collection-based product paths. Every product can be accessed via its canonical URL (/products/handle) and via any collection it belongs to (/collections/collection/products/handle).

The duplicate content risk

If a product appears in five collections, it has six accessible URLs — one canonical and five collection-based. While Shopify adds canonical tags to the collection-based versions, these duplicate URLs still consume crawl budget and can create confusion if the canonical tags are not working correctly.

Update internal links to use canonical URLs

The most impactful change you can make is ensuring your internal links always point to the canonical /products/ URL rather than the collection-based path. In your theme’s collection template, change:

{{ product.url | within: collection }}

To:

{{ product.url }}

This ensures that every internal link to a product from a collection page uses the canonical URL, which consolidates link equity and signals clearly to Google which URL is the preferred version.

Optimise collection handles too

Collection page handles are just as important as product handles. A collection handle like all or products-1 tells Google nothing about the page content. Use descriptive, keyword-rich handles like organic-cotton-t-shirts or mens-jumpers.

Remember that collection handles also appear in the collection-based product URLs. A clean collection handle makes the entire URL structure more readable. For more on how to fix the duplicate URLs created by this system, see our guide on fixing duplicate content on Shopify.

Step 4: Manage redirects properly

Redirects are essential when you change URL handles, remove products, or restructure your store. Poor redirect management is one of the most common causes of SEO damage on Shopify stores.

Always create redirects when changing handles

Shopify does not automatically create redirects when you change a product or collection handle. If you change a product handle from blue-jacket to navy-wool-jacket, the old URL immediately returns a 404 error. Any backlinks pointing to the old URL stop passing equity, and any indexed pages in Google become dead ends.

Create a 301 redirect in Shopify admin under Settings > Navigation > URL Redirects. Add the old path as the redirect from and the new path as the redirect to. Do this before changing the handle, or immediately after.

Handle deleted products

When you delete a product, redirect its URL to the most relevant existing page — typically the collection page it belonged to, a similar product, or a category page. Do not let deleted products return 404 errors indefinitely. Every 404 page is a dead end for users and search engines.

Avoid redirect chains

A redirect chain occurs when URL A redirects to URL B, which redirects to URL C. Each step adds latency and dilutes link equity. On Shopify, chains often develop when you change a handle multiple times without updating the original redirect. Periodically audit your redirects to identify and flatten chains.

Use a crawl tool like Screaming Frog to identify redirect chains. When you find one, update the first redirect to point directly to the final destination, bypassing the intermediate step. For guidance on managing redirects during major changes, see our guide on SEO during platform migration.

Bulk redirect management

If you are changing many handles at once (e.g. during a URL standardisation project), use Shopify’s CSV import feature for redirects rather than creating them one by one. Prepare a spreadsheet with old paths in one column and new paths in another, then import it through Settings > Navigation > URL Redirects > Import.

Redirect management interface in Shopify showing old and new URL paths
Every URL change on Shopify requires a manual 301 redirect to preserve search equity and prevent broken links.

Step 5: Verify canonical tag configuration

Canonical tags tell Google which URL is the authoritative version when multiple URLs contain the same content. On Shopify, canonical tag management is closely tied to URL structure.

Check default canonical behaviour

Shopify adds canonical tags automatically using the canonical_url Liquid object. Verify that your theme’s theme.liquid file includes:

<link rel="canonical" href="{{ canonical_url }}">

This should appear inside the <head> section. If it is missing or has been modified, your canonical tags may not function correctly.

Verify canonical output on each page type

Check the actual canonical tag output on different page types by viewing the page source:

  • Product pages should have a canonical pointing to /products/handle
  • Products accessed via collections should have a canonical pointing to /products/handle (not the collection-based URL)
  • Collection pages should have self-referencing canonicals
  • Paginated pages should have self-referencing canonicals (page 2 points to page 2, not page 1)

Check for conflicting canonicals from apps

Some Shopify apps inject their own canonical tags, which can result in multiple canonicals on a single page. Google treats conflicting canonicals as if no canonical exists at all. Search your page source for “canonical” and ensure there is exactly one canonical tag per page.

Step 6: Control URL parameters and filtering

URL parameters create additional URLs that can cause indexation and crawl budget issues if not managed properly.

Variant parameters

When a user selects a product variant, Shopify appends ?variant=12345678 to the URL. Shopify’s default canonical tags handle this correctly by pointing to the base product URL without the parameter. Verify this is working on your store, especially if you have customised your theme or installed apps that modify URL behaviour.

Tag filtering parameters

Shopify’s native tag filtering creates URLs like /collections/t-shirts/colour-blue. These URLs are crawlable and indexable by default, which can create hundreds of thin, duplicate pages. Consider noindexing tag-based URLs by adding this to your collection template:

{% if current_tags %}
  <meta name="robots" content="noindex, follow">
{% endif %}

Sort and pagination parameters

Sort parameters (?sort_by=price-ascending) and pagination parameters (?page=2) create additional URL variations. Ensure sorted versions of collection pages have canonical tags pointing to the default sort order, and that paginated pages have self-referencing canonicals.

Third-party filtering apps

If you use a third-party filtering app, check how it handles URLs. Some apps use JavaScript-based filtering that does not create new URLs (SEO-friendly), while others create crawlable parameter-based URLs (potentially problematic). Choose apps that filter without creating new crawlable URLs, or ensure the app adds appropriate canonical tags to filtered views.

Diagram showing URL parameter variations on a Shopify collection page
URL parameters from variants, tags, sorting, and pagination can multiply the number of crawlable URLs on your store exponentially.

Step 7: Audit and maintain your URL structure

URL optimisation is not a one-time task. New products, changed handles, deleted pages, and app installations can all introduce URL problems over time.

Monthly URL audit checklist

Run a crawl monthly and check for:

  • New 404 errors from deleted products or changed handles without redirects
  • Redirect chains longer than one step
  • Pages with missing or incorrect canonical tags
  • New auto-generated handles that need optimisation
  • Tag-filtering URLs that have been indexed despite noindex directives

Set up URL handle guidelines for your team

If multiple people add products to your store, create a written guide for URL handle conventions. Document the naming pattern, maximum length, words to include and exclude, and the redirect process for handle changes. This prevents inconsistency from creeping in as your catalogue grows.

Use a redirect audit tool

Periodically export all redirects from Shopify (Settings > Navigation > URL Redirects > Export) and review them. Look for redirects that point to URLs that no longer exist (creating a chain to a 404), redirects that are no longer needed (the old URL has been deindexed and has no backlinks), and duplicate redirects.

Connect your URL structure management to your broader SEO strategy so that URL decisions are informed by keyword research and competitive analysis, not just operational convenience.

URL audit spreadsheet showing handle optimisation status across a product catalogue
Regular URL audits catch handle inconsistencies, redirect issues, and canonical problems before they affect rankings.

URL structure on Shopify is constrained by the platform, but the constraints are not the problem. The problem is what store owners do — or fail to do — within those constraints. Clean handles, proper redirects, and correct canonical tags turn Shopify’s URL system from a liability into an asset.

Andrew Simpson, Founder

Bringing it together

Optimising your Shopify URL structure involves understanding the platform’s fixed constraints, writing clean keyword-rich handles, managing collection-based product URLs, implementing proper redirects, verifying canonical tags, controlling URL parameters, and maintaining everything through regular audits.

The most impactful actions are often the simplest: editing auto-generated handles before publishing, creating redirects whenever you change a URL, and ensuring internal links use canonical product URLs. These basic practices prevent the URL problems that silently accumulate and erode rankings over time.

Start by auditing your existing URL handles and fixing the worst offenders. Then establish conventions for new products going forward. The goal is a URL structure that is clean, consistent, and keyword-relevant across your entire catalogue.

If you need help auditing and optimising your Shopify URL structure, get in touch. We can review your current URLs, implement fixes, and set up processes that keep your URL structure clean as your catalogue grows.