Back to Guides
Guide
12 min read

How to Structure Shopify URLs for SEO

Your URL structure affects how search engines understand and rank your pages. This guide shows you how to create SEO-friendly URLs in Shopify that both users and Google will love.

Flex Commerce Team
Updated February 2024

Why URL Structure Matters

URLs are one of the first things search engines analyse when crawling your site. A well-structured URL tells Google what a page is about before it even looks at the content. It also helps users understand where they are on your site and makes links more shareable.

Consider these two URLs for the same product:

Poor URL:

yourstore.com/products/prod-12847-v2

Good URL:

yourstore.com/products/blue-leather-crossbody-bag

The second URL immediately tells both Google and users what the page contains. This clarity provides several benefits:

  • Keyword relevance: URLs containing keywords can rank better for those terms
  • User trust: Clear URLs look more professional and trustworthy
  • Click-through rate: Descriptive URLs in search results encourage clicks
  • Link sharing: People are more likely to share URLs that clearly describe the content

Shopify URL Structure

Shopify uses a fixed URL structure that you cannot change. Understanding this structure helps you optimise within its constraints.

Default URL Patterns

Products:     yourstore.com/products/[handle]
Collections:  yourstore.com/collections/[handle]
Pages:        yourstore.com/pages/[handle]
Blog Posts:   yourstore.com/blogs/[blog-name]/[post-handle]
Cart:         yourstore.com/cart
Checkout:     yourstore.com/checkouts/[token]

The handle is the part you can customise. It's automatically generated from your product or collection title but can be edited manually.

What You Cannot Change

  • ×You cannot remove /products/, /collections/, or /pages/ from URLs
  • ×You cannot create nested product URLs like /collections/bags/blue-bag
  • ×You cannot change the URL structure without significant custom development

Pro Tip

While Shopify's fixed structure limits flexibility, it actually creates consistency that search engines appreciate. Focus your efforts on optimising the handle portion of each URL, which is where you have full control.

Optimising Product URLs

Product URLs should be descriptive, keyword-rich, and easy to read. Here's how to create effective product handles.

Product URL Best Practices

  1. 1
    Include the primary keyword

    If someone would search "blue leather bag", use that as the base of your handle.

  2. 2
    Keep it concise

    3-5 words is ideal. Long URLs get truncated in search results and are harder to remember.

  3. 3
    Use hyphens to separate words

    Hyphens are the standard word separator in URLs. Never use underscores or spaces.

  4. 4
    Use lowercase letters

    URLs are case-sensitive. Stick to lowercase to avoid confusion and duplicate content.

  5. 5
    Avoid special characters

    Stick to letters, numbers, and hyphens. Remove apostrophes, commas, and other punctuation.

Product URL Examples

/products/SKU-BLU-001-LTH-BAG
/products/blue-italian-genuine-leather-crossbody-shoulder-bag-with-gold-hardware
/products/blue-leather-crossbody-bag
/products/italian-leather-tote-navy

Editing Product Handles

  1. 1.Go to Products → select your product
  2. 2.Scroll down to "Search engine listing"
  3. 3.Click "Edit" to expand the section
  4. 4.Edit the "URL handle" field
  5. 5.Save the product (Shopify creates a redirect automatically)

Optimising Collection URLs

Collection URLs often target broader, higher-volume keywords. Getting these right can drive significant organic traffic.

Collection URL Strategy

  • Match search intent: Use the exact phrase people search for (e.g., "womens-summer-dresses" not "dresses-summer-women")
  • Keep it simple: One or two words is often enough ("handbags", "mens-shirts")
  • Be consistent: Use the same structure across all collections
  • Think about hierarchy: "summer-dresses" works better than "dresses-for-summer"

Collection URL Examples

/collections/all-our-beautiful-leather-bags-and-accessories
/collections/cat-001
/collections/leather-bags
/collections/womens-dresses

URL Best Practices

These guidelines apply to all URLs on your Shopify store, from products to pages to blog posts.

Keep URLs Short

Shorter URLs are easier to remember, share, and display in search results. Aim for under 60 characters for the entire URL path. Remove unnecessary words like "the", "and", "for" when they don't add meaning.

Use Real Words

URLs should be readable by humans. Avoid product codes, random numbers, or abbreviations that don't make sense. "blue-dress" is better than "blu-drs-01".

Include Your Target Keyword

Put your primary keyword in the URL. If you're targeting "organic cotton t-shirt", that phrase should appear in the URL handle. This helps Google understand relevance.

Be Consistent

Use the same format across your store. If you use "mens-shirts", don't switch to "shirts-for-men" elsewhere. Consistency helps users and search engines understand your site structure.

Avoid Stop Words When Possible

Words like "a", "the", "and", "of" add length without SEO value. "blue-leather-bag" works better than "the-blue-leather-bag". Exception: keep them if removing them makes the URL unclear.

Handling URL Changes

Sometimes you need to change a URL after a page is already live and indexed. This requires careful handling to preserve SEO value.

When Shopify Creates Redirects Automatically

Shopify automatically creates a 301 redirect when you change a product or collection handle through the admin. This preserves the SEO value of the old URL and ensures customers with bookmarks or old links still reach your page.

When You Need Manual Redirects

  • Migrating from another platform with different URL structures
  • Deleting products but wanting to redirect to similar items
  • Restructuring your collections entirely
  • Fixing URLs that were set up incorrectly

Pro Tip

Before changing URLs on established products, check Google Search Console to see how much organic traffic they receive. High-traffic pages need extra care. Always verify redirects are working after making changes.

Common URL Mistakes

Avoid these common mistakes that can hurt your SEO and create confusion.

Using Auto-Generated Handles

The problem: Shopify creates handles from product titles, which can result in URLs like "/products/super-soft-premium-100-cotton-t-shirt-mens-blue-size-m".

The fix: Always review and optimise auto-generated handles before publishing.

Including Variant Information

The problem: URLs like "/products/t-shirt-blue-medium" create issues when variants change or you add new colours.

The fix: Use generic product URLs and let variants be handled by Shopify's variant system.

Changing URLs Without Redirects

The problem: If you delete and recreate a product with a new handle, there's no automatic redirect.

The fix: Edit existing products rather than deleting them. If you must delete, create manual redirects.

Inconsistent Naming Conventions

The problem: Having "mens-t-shirts" alongside "womens-tshirts" and "kids_shirts" confuses users and search engines.

The fix: Create a naming convention and apply it consistently across all URLs.

Next Steps

With your URLs optimised, here's how to continue improving your store's SEO structure.

  1. 1
    Audit your existing URLs

    Review all product and collection handles. Create a list of URLs that need optimisation.

  2. 2
    Create a naming convention

    Document your URL structure rules so new products and collections follow the same pattern.

  3. 3
    Check for redirect chains

    If you've changed URLs multiple times, you may have chains (A→B→C). Consolidate them.

Need Help With URL Structure?

Our team can audit your store's URL structure and implement SEO best practices to improve your search visibility.