URL Structure for Shopify Stores: What You Can Control, What You Can't, and How to Change URLs Without Losing Rankings

Technical SEO

By Kelvin Leng

Shopify makes a lot of URL decisions for you — and that’s both good and bad. The good: you can’t easily make the catastrophic mistakes that wreck SEO on custom-built sites. The bad: Shopify locks parts of your URL structure you might want to change, and creates duplicate URLs through normal store operation that you do need to manage. This guide explains how Shopify URLs actually work, what’s worth optimizing, what’s out of your hands, and the exact steps to change a product or collection URL without tanking its rankings.


How Shopify URLs Actually Work

A URL has several parts, and understanding them tells you what you can and can’t change on Shopify.

Take a real Shopify product URL:

https://yourstore.com/products/merino-wool-socks?variant=12345

  • Protocol: https:// — Shopify forces HTTPS on every store, so this is handled automatically (one less thing to worry about)
  • Domain: yourstore.com — your store’s identity and where authority accumulates
  • Path: /products/merino-wool-socks — the part you have the most control over, within Shopify’s structure
  • Query string: ?variant=12345 — variant selection, filters, tracking parameters

Here’s the thing Shopify owners need to understand up front: Shopify enforces a fixed URL structure you can’t fully customize. Every product lives under /products/, every collection under /collections/, every blog post under /blogs/, every page under /pages/. You can’t remove these prefixes or create a completely custom path hierarchy the way you could on a self-built site.

This is mostly fine. The fixed structure is clean and SEO-friendly by default. But it means some URL “best practices” written for custom sites don’t apply to you — and some Shopify-specific issues need attention that generic guides never mention.

What You Can and Can’t Control on Shopify

You can control:

  • The handle (the slug) of products, collections, pages, and blog posts — e.g. changing /products/product-1 to /products/merino-wool-socks
  • Whether to use hyphens and lowercase (Shopify defaults to both correctly)
  • Your blog structure and naming
  • Redirects when you change a URL (via Shopify’s URL Redirects feature)

You can’t control:

  • The /products/, /collections/, /blogs/, /pages/ prefixes
  • The fact that products can be accessed through collection paths (/collections/sale/products/x)
  • Variant URL parameters (?variant=12345)
  • Some app-generated parameter URLs

Knowing this boundary saves you from chasing changes Shopify won’t let you make, and focuses your effort where it actually counts.


How Google Reads Your Shopify URLs

Google’s crawler doesn’t read your whole product page before knowing what it’s about — the URL path is its first information source. Each segment is a topic signal that helps Google predict the page’s subject before crawling.

For Shopify stores, three mechanisms matter:

Path depth affects crawl frequency. Shopify’s default structure keeps things shallow — /products/merino-wool-socks is just two levels. That’s good. The problem comes when products get crawled through collection paths (/collections/mens/products/merino-wool-socks), adding a level and creating duplicate access paths.

Query strings create URL explosion. This is the big one for Shopify. Collection filters and sorts (?sort_by=price-ascending&filter.v.option.size=medium) can spawn thousands of URL variations, all showing similar content. Variant parameters (?variant=12345) do the same on product pages. Left unmanaged, this wastes crawl budget and dilutes your main pages’ signals.

URL paths help build topical association. /collections/running-shoes tells Google this is a collection about running shoes. Clean, descriptive collection and product handles help Google understand your store’s structure and contribute to topical authority.

The key thing to understand: URLs have limited direct ranking impact. Their main value for a Shopify store is crawl efficiency, user experience, and indirect CTR. Don’t think your SEO collapsed because of a URL, and don’t think it’s handled just because the URL looks clean.


Six URL Principles for Shopify Stores

The core logic: readable for shoppers, parseable for machines, short but meaningful. Here’s how each principle applies on Shopify specifically.

1. Lowercase — Shopify handles this

Shopify automatically generates lowercase URLs, so the case-sensitivity duplicate content problem that plagues custom sites isn’t an issue here. One less thing to manage. Just don’t manually create handles with mixed case.

2. Hyphens, not underscores — Shopify handles this too

Shopify automatically uses hyphens to separate words in handles. Google reads hyphens as word separators (so merino-wool-socks reads as three words), which is correct for SEO. Shopify does this by default, so you don’t need to intervene — just don’t manually insert underscores when editing a handle.

3. Short but meaningful handles — this you control

This is where your effort matters. Shopify auto-generates a handle from the product title, which often produces something too long or cluttered. A product titled “Premium Merino Wool Crew Socks for Hiking and Everyday Wear - Unisex” generates the handle premium-merino-wool-crew-socks-for-hiking-and-everyday-wear-unisex. That’s too long.

Edit the handle to something cleaner: merino-wool-crew-socks. The test: remove a word — is the meaning still clear? If yes, remove it. Keep the whole URL under 75 characters, with the handle portion ideally under 40. Backlinko’s analysis of 4 million search results found URLs containing the keyword get about 45% higher CTR — so a clean handle with your main keyword genuinely helps.

To edit a handle: in the product/collection editor, scroll to the “Search engine listing” section, click Edit, and change the URL handle there. (More on the redirect implications of this below.)

4. Path depth — mostly handled, but watch collection paths

Shopify’s default product URL (/products/handle) is shallow, which is good. The issue is products accessed through collections (/collections/name/products/handle) add depth and create duplicates. Shopify’s canonical tags usually handle this by pointing both to the clean /products/handle URL — but your internal links should also point to the clean URL, not the collection-prefixed version. (Many themes link through the collection context, creating a mismatch. More on this below.)

5. Query strings — the biggest Shopify URL issue

This is where Shopify stores actually need to pay attention. Collection filters, sorts, and variant parameters generate enormous numbers of URLs. Shopify typically canonicals these back to the clean URL, but:

  • If you use a third-party filter/search app (Boost, Searchanise, Smart Product Filter), verify it’s canonicalizing parameter URLs correctly — some don’t
  • Check that filtered collection URLs aren’t getting indexed by searching site:yourstore.com inurl:? on Google
  • UTM tracking parameters (?utm_source=facebook) are fine — Google doesn’t index them, and Shopify canonicals strip them

6. HTTPS — fully handled by Shopify

Every Shopify store gets HTTPS automatically with an SSL certificate. This is one of the six principles you never have to think about — Shopify handles it completely. (On custom sites this is a real project; on Shopify it’s free and automatic.)

The takeaway: of the six URL principles, Shopify handles four for you (lowercase, hyphens, HTTPS, and mostly path depth). Your real work is on handle quality (principle 3) and query string management (principle 5).


Subfolder vs. Subdomain: Where to Put Your Shopify Blog and Content

Most Shopify stores don’t think about this until they want to add a blog, a help center, or content that Shopify’s built-in tools don’t handle well — and then they face the subfolder vs subdomain decision.

In most cases, subfolders win for SEO. The reason: Google treats a subfolder as part of your main domain, so the authority your store accumulated flows into it. A subdomain is treated as a separate site that builds authority from scratch.

DimensionSubfolder (yourstore.com/blog/)Subdomain (blog.yourstore.com)
Authority inheritanceInherits your store’s domain authorityBuilds from zero, separately
Crawl resourcesShares your store’s crawl budgetTreated as a separate site
Time to rankFaster (2-3 months)Slower
Best forBlog, content, help centerFully separate services

Backlinko’s analysis of 11.8 million search results found subfolder pages consistently outrank subdomains on competitive keywords. One documented case showed a blog moving from subdomain to subfolder produced about 34% organic traffic growth in four months with the same content.

For Shopify stores specifically:

  • Shopify’s built-in blog lives at yourstore.com/blogs/news — already a subfolder, which is correct. Use it for your buying guides and content rather than spinning up a separate subdomain blog.
  • If you outgrow Shopify’s blog and want a more powerful CMS (some stores use headless setups or external blog platforms), keep it on a subfolder if at all possible. Some stores run their blog on a subdomain or separate platform for technical convenience and unknowingly cut it off from the store’s domain authority.
  • Avoid the common mistake of running content marketing on a separate blog.yourstore.com subdomain or even a separate domain entirely. That content’s authority doesn’t help your product pages rank.

When is a subdomain reasonable? Fully independent services — like a separate B2B wholesale portal, a community forum, or a help desk on a third-party platform. For your core content marketing, keep it under the main domain.


A Note on Custom Domains and URLs

If you’re on a .myshopify.com URL, switch to a custom domain (yourstore.com) as early as possible. The .myshopify.com domain works, but a custom domain is essential for brand trust and is the version you want accumulating authority. Shopify makes this straightforward in Settings → Domains, and it sets up the correct redirects automatically.

One thing to get right: pick your primary domain (www vs non-www) and let Shopify handle the redirect. Shopify automatically redirects all variations to your primary domain, so you don’t get the duplicate-content problem that hits custom sites with HTTP/HTTPS/www/non-www splits. This is another thing Shopify handles that you’d have to manage manually elsewhere.


Changing a Shopify URL Without Losing Rankings

Once a product or collection has rankings and traffic, changing its URL is a high-risk operation. The good news: Shopify has a built-in URL Redirects feature that makes this safer than on many platforms. The bad news: “just let Shopify create the redirect” isn’t quite the whole job. Here’s the full process.

1. Build a list of URLs you’re changing

Before changing anything, know what you’re touching. Export your indexed pages from Google Search Console and identify which products/collections have organic traffic. Changing the handle of a product that ranks well and drives revenue is much higher-stakes than changing one nobody finds through search. Prioritize accordingly.

2. Understand what Shopify does automatically

When you change a product or collection handle in Shopify, it offers to create an automatic redirect from the old URL to the new one. Accept this. Shopify creates a 301 redirect (the correct type), found under Online Store → Navigation → URL Redirects. This handles the most important part — but not all of it.

3. Avoid redirect chains

If you change a URL more than once over time, you can create chains: old URL A → old URL B → current URL C. Each hop loses about 15% of PageRank signal; a three-hop chain loses close to 38%. Check your URL Redirects list (Online Store → Navigation → URL Redirects) and make sure old redirects point directly to the current URL, not to an intermediate URL that redirects again. Clean up chains by updating old redirects to point straight to the final destination.

4. Update internal links (the step most stores skip)

This is the most common reason Shopify stores lose traffic after changing URLs. You changed the handle and Shopify created the redirect, but every internal link in your store — navigation menus, related products, buying guides linking to that product, collection descriptions — still points to the old URL. Every click now takes an extra redirect hop, which hurts both crawl efficiency and PageRank flow.

Update internal links anywhere you’ve manually linked to the changed URL: navigation menus (Online Store → Navigation), blog posts and buying guides, page content, and any hardcoded theme links. For a thorough check, crawl your store with Screaming Frog and find any internal links still pointing to old URLs.

5. Update your sitemap and resubmit in GSC

Shopify automatically regenerates your sitemap.xml when you change URLs, so this is mostly handled. But after a significant URL change, go to Google Search Console → Sitemaps and resubmit your sitemap (yourstore.com/sitemap.xml) to prompt Google to recrawl. For important products, use GSC’s URL Inspection tool to manually request re-indexing of the new URL.

After changing URLs, monitor for 6-8 weeks. Watch GSC’s Pages report to confirm old URLs drop out of the index and new URLs get indexed and hold their rankings. Some temporary fluctuation is normal. If traffic disappears outright, check for a broken redirect or a robots.txt issue.


FAQ for Shopify Store Owners

Can I remove the /products/ or /collections/ from my Shopify URLs?

No. Shopify enforces these path prefixes and doesn’t let you remove or customize them. Every product is under /products/, every collection under /collections/. This is a hard platform limitation. The good news is this structure is clean and SEO-friendly, so it’s not worth worrying about — focus your effort on the handle (the part after the prefix), which you can control.

Does URL structure really affect my Shopify store’s rankings?

It does, but it’s not a primary factor. The direct ranking impact is limited. The main value is crawl efficiency (clean URLs help Googlebot), CTR (URLs with keywords get ~45% higher click-through per Backlinko), and PageRank flow. For Shopify stores, the biggest URL-related wins come from clean product handles and managing filter/parameter URL explosion — not from agonizing over the path structure Shopify locks anyway.

Should I edit the auto-generated handle on my products?

Often yes. Shopify generates handles from the full product title, which can be long and cluttered. Editing it to a clean, keyword-focused version (e.g. merino-wool-socks instead of premium-merino-wool-crew-socks-for-hiking-unisex-2026) improves readability and CTR. Do this when you create the product, before it gets indexed and linked — changing it later means managing redirects.

What happens if I change a product URL? Will I lose rankings?

Shopify offers to create an automatic 301 redirect when you change a handle — accept it, and you preserve most of the ranking signal. But also update internal links pointing to the old URL and check for redirect chains. Expect some temporary ranking fluctuation (a few weeks). The biggest mistake is changing handles on well-ranking products carelessly, or repeatedly, which creates redirect chains and erodes signal.

Should I use my Shopify blog or a separate blog platform?

Use Shopify’s built-in blog (at /blogs/) if it meets your needs — it’s already a subfolder of your main domain, so content authority flows to your store. Only consider an external platform if you genuinely outgrow Shopify’s blogging features, and even then, keep it on a subfolder of your main domain if at all possible. Running your blog on a separate subdomain or domain cuts it off from your store’s authority and is a common, costly mistake.

Do Shopify variant URLs (?variant=12345) hurt my SEO?

Generally no — Shopify canonicals variant URLs back to the main product page by default, so they don’t create duplicate content problems. Verify with Google’s URL Inspection tool on a product page if you’re concerned. The bigger parameter issue is collection filters and sorts, especially if you use a third-party filter app that doesn’t canonicalize correctly.

How do I handle collection filter URLs (?sort_by=, ?filter=)?

Shopify typically canonicals filtered/sorted collection URLs back to the clean collection URL, which prevents most duplicate content issues. If you use a third-party filter or search app, verify it canonicalizes correctly by running a few filtered URLs through Google’s URL Inspection tool. Check whether filtered URLs are getting indexed by searching site:yourstore.com inurl:? on Google — if you see lots of parameter URLs indexed, that’s worth fixing.

Should my Shopify URLs be in English or another language?

Google reads both, but non-English URLs convert to percent-encoding when shared or cited (turning into long %E4%B8%AD strings), which hurts link clarity and makes GSC/GA4 tracking confusing. For most stores — especially any with international ambitions or backlink plans — English handles are the cleaner choice. A purely local store with no backlink strategy can use native-script handles, but English is the safer default.

Is HTTPS something I need to set up on Shopify?

No. Every Shopify store gets HTTPS automatically with a free SSL certificate. This is one technical SEO requirement Shopify completely handles for you — on custom-built sites it’s a real project, but on Shopify you never have to think about it.

My store is on a .myshopify.com URL. Is that a problem?

For SEO and brand trust, switch to a custom domain (yourstore.com) as soon as possible. The .myshopify.com URL works technically, but a custom domain is what you want accumulating authority and what shoppers trust. Set it up in Settings → Domains; Shopify handles the redirects automatically.

My existing store has messy product handles. Should I change them all?

Probably not all at once. If products already rank and drive traffic, changing handles carelessly risks 2-3 months of ranking fluctuation per change, even with redirects. Prioritize: fix handles that are genuinely problematic (extremely long, missing the main keyword, auto-generated gibberish) on your highest-value products, and leave decent-enough handles alone. For new products, set clean handles from the start when the cost is zero. Don’t change handles just to make them “prettier” if they’re already functional.