Shopify URL structure, limitations, and SEO

Shopify URL structure, limitations, and SEO
By purchasing through the links on this page, you are giving us the opportunity to earn a commission. Your support is greatly appreciated!

The Shopify URL structure is the way products and collections URLs are organized in your store. And the fact that Shopify limits the editing of URL structure has historically raised questions about how SEO-friendly Shopify is.

In this article, we’ll go through a few elements of the Shopify URL structure, including product, collection, and blog URL structures. We’ll also walk through how to change them in Shopify from the default settings.

Optimize your Shopify store images and speed, and improve SEO performance with one app

Install TinyIMG now

Product URL structure on Shopify

Shopify product URL structure can be confusing because it can seem inconsistent and unfriendly to both users and search engines by creating duplication.

Products are created within the /products/ directory, as we see with GymShark:

https://www.gymshark.com/products/gymshark-sport-leggings-black-ss22

By default, though, when you create a collection and add products to it, you also generate a canonicalized product collection URL like what happens on Jurlique:

https://jurlique.com/collections/body/products/softening-body-lotion-rose

Within the Shopify system, you’re limited to editing the final part of the URL, the product name, which is derived from the page title.

That being said, you are able to edit the product URL and its structure somewhat for Shopify stores. As we can see with the GymShark example above, you’re not able to remove the /products/ folder, you can update your product URL handle, and force them to link from collections in a way that’s more SEO friendly.

We’ll include step-by-step instructions on a few options to do this, both within the standard Shopify editor and in a more advanced way that requires updating the liquid files for the shop.

How to change a Product URL structure on Shopify?

To force the product URL in collections, do the following:

1. From your admin panel, go to Sales Channels > Online Store > Themes:

editing Shopify product URL structure from collection page step 1

2. Click Actions > Edit Code:

editing Shopify product URL structure from collection page step 2

3. Under Layout, click product-grid-item.liquid under “Snippets”:

editing Shopify product URL structure from collection page step 3

4. Look for “featured.url”:

editing Shopify product URL structure from collection page step 4

5. Update{{ featured.url | within: collection }} to{{ featured.url }}

6. Click Save

7. Check your live website

If you choose to implement this option, you should also ideally implement 301 redirects in your Shopify store from the collection URLs to the product URLs so you’re not fully diluting your authority, as even orphan pages get crawled by Google sometimes.

How to change a Product URL handle?

To edit the product URL handle, follow these instructions:

1. From the home screen, navigate to Products:

editing Shopify product URL handle step 1

2. From Products, choose an item, either live or in a draft. Scroll down until you reach “Search engine listing preview”:

editing Shopify product URL handle step 2

3. Click on “Edit website SEO”. Scroll down until you reach “URL handle”:

editing Shopify product URL handle step 3

4. Here you can edit the last part of the URL structure:

editing Shopify product URL handle step 4

5. By default Shopify asks if you want to create a URL redirect from the old product URL to the new. This follows best practices for SEO, and should be ticked. This follows best practices for SEO, and should be ticked.

6. Scroll down and click “Save” at the bottom of the page.

Shopify collection page URL structure

Shopify collection URL updates are similar to product URL updates, with similar limitations in terms of what you can and can’t edit. When you create a Shopify collection page, its URL template is: https://www.yoursite.com/collections/your-collection-name, where what you’re able to edit is your-collection-name.

So while you need to keep the /collections/ folder in your URL structure for collection pages, you should be able to update the collection URL handle. A few collection examples include:

  • https://www.allbirds.com/collections/womens-runners
  • https://www.deathwishcoffee.com/collections/single-serve
  • https://www.gymshark.com/collections/new-releases/womens

If you want to have subcategories on Shopify, it is possible, you’ll just still need to nest everything into the collections folder, like we see, again, with Gymshark above.

We’ll go through how to make changes to the Shopify collection pages URLs step-by-step.

How to change a collection URL in Shopify?

1. Navigate from Home to Products.

2. From Products, click Collections:

editing Shopify collection URL handle step 2

3. Once you’ve chosen a collection scroll down to Search engine listing preview

editing Shopify collection URL handle step 3

4. By default, Shopify creates the collection URL from the Page TItle:

editing Shopify collection URL handle step 4

5. If you want to change it manually, make changes in the URL handle field. As with products, a trigger will automatically come up to create a redirect from old URL to the new one. Leave this field ticked.

editing Shopify collection URL handle step 5

6. Save edits and navigate to your online store to make sure your Shopify collection's URL was successfully changed.

How to change a blog URL on Shopify?

So the default setup for Shopify blogs is a bit strange, as it’s meant to allow you to have different blogs. So if you call your blog “blog”, you may end up with a structure like /blogs/blog/article-title, which probably isn’t what you were expecting.

If a website only has one blog, many choose “News,” or you can give your blog a branded name, or whatever you like. The /blogs/ folder will stay, regardless of what you choose.

If you want to change your blog post URL:

1. From home go to Sales Channel > Online Store > Blog posts:

editing Shopify blog post URL

2. If you want to change the article URL, as with product and collection URLs, scroll down to Search engine listing preview and click “Edit Website SEO”

3. In the URL and handle field change the URL to what you’d like. The default is based off the Page title.

4. If you have more than one blog in your Shopify store, like “/blogs/news” and “/blogs/journal”, you might want to move an article from one blog to another. In this case, on the blog post page, scroll down to Organization, and click the Blog dropdown.

changing Shopify blog post URL when moving the article to another blog

5. Choose a new blog to assign it to.

6. Click Save.

When you change the blog an article is assigned to, a 301 redirect isn’t automatically prompted, so you should manually add one.

How to change a URL for other pages on Shopify?

Pages live within the “Pages” folder structure by default. As with blog posts, collections and products, what is editable within Shopify for pages is only the final part of the URL. 

Here's how to change your page URL in Shopify:

1. From home go to Sales Channel > Online Store > Pages.

2. From the list menu, choose the page URL you want to change.

3. If you want to change the page URL, as with product and collection URLs, scroll down to Search engine listing preview and click “Edit Website SEO.”

4. Scroll down to “URL and handle” and edit the editable text to change the page URL. Keep the URL redirect prompt ticked.

editing Shopify page URL handle

5. Click Save.

Are Shopify URLs SEO-friendly?

Shopify URLs reflect how you name your products, collections, blog posts, and other pages. If the store structure is organized in a way that makes sense and isn't too flat or duplicated, it will be enough for good SEO performance.

To make sure your Shopify URLs are SEO-friendly to the maximum extent, follow the tips below:

  • Make URLs clear and short. Ensure you make concise URLs that deliver the message without unnecessary noise. Avoid using long word combos, numbers, or irrelevant characters.
  • Use relevant keywords. Make sure to include relevant keywords to the page’s contents.
  • Use hyphens for word separation. Utilizing hyphens instead of underscores to separate words ensures your Shopify URLs are more SEO-friendly.
  • Go with lowercase letters. URLs are case-sensitive; therefore, using lowercase letters rather than uppercase ones ensures there’s less confusion in your Shopify URLs. 
  • Stay consistent. Consistent URL structure throughout the website ensures that both visitors and search engine can navigate through it easier.

What to consider if you're migrating from another platform?

Specifically with your URL structure, if you’ve created a very customized, layered folder structure with many categories and subcategories, you’ll probably want to map out ahead of time how that will look in Shopify, with the restrictions around collections and products we’ve discussed here.

Overall, the Shopify URL structure is what you make of it. While there are a few considerations to manage in order to fully take advantage of organic search, no content management system is perfect, often even when it’s a custom CMS built specifically for your needs. Shopify can still be an SEO-friendly option for you and your eCommerce store.

Frequently asked questions

Yes, you can change Shopify URL slugs. This can be done through your Shopify Admin, by simply going to the Sales Channel > Online Store > Pages. Once you’re on the Pages section, select the Shopify page you want to change the URL for.

No, you can’t eliminate "/pages/" from Shopify URLs. This rule also applies to other segments like "/collections/" and "/products/." However, given Shopify's widespread use, Google easily recognizes Shopify-specific URLs. Consequently, having a slightly longer URL due to these specifics is not a concern for search engine optimization.

About the author
Nikoleta Kokleviciute
Nikoleta is a Marketing Manager at TinyIMG, an app for image and SEO optimization for Shopify merchants. Nikoleta loves diving deep into digital marketing, eCommerce, social media trends, and creating content that benefits its readers!