A URL redirect sends traffic from one web page to another. When you change a URL in your Shopify store, for instance by deleting a product, you can create a URL redirect to ensure your customers can still find what they're looking for instead of seeing an error page. (Creating and managing URL redirects)
Key takeaways
- URL redirects guide customers from old or broken URLs to active pages, preventing "Page not found" errors. (Creating and managing URL redirects)
- Shopify uses permanent 301 redirects, which tells search engines the move is permanent and helps preserve your SEO value.
- You can create redirects for deleted products, changed page URLs, or temporarily hidden collections.
- Redirects only work for broken URLs; you cannot redirect a URL that still loads a valid webpage.
- Shopify allows you to create, edit, filter, import, and export URL redirects from the admin.
What is a URL redirect in Shopify?
A URL redirect is a way to send a visitor who requests an old page to a new one automatically. For example, if you rename a product, its URL changes. A redirect ensures that anyone using the old link lands on the new product page instead of a "404 Page not found" error. This maintains a smooth customer experience and helps preserve your search engine rankings. (Creating and managing URL redirects)
When should you use a URL redirect?
Setting up redirects is a good practice whenever you make changes that would otherwise lead to a broken link. By redirecting the old URL, you keep website traffic flowing and avoid frustrating potential customers.
Here are the most common scenarios for creating a URL redirect:
- Deleting a product or page. If you remove a product, you can redirect its old URL to a similar product or the collection it belonged to. (Creating and managing URL redirects)
- Changing a product or collection URL. If you update the name of a product or page, Shopify may automatically create a redirect. It is a good practice to check that a redirect is in place.
- Managing out-of-stock or seasonal items. You can hide a collection, like for a season that has passed, and redirect its URL to a current collection. When you make the old collection visible again, the redirect is automatically removed.
- Rebranding or moving your store. If you are moving to a new domain, redirects are essential to guide traffic from your old URLs to your new ones, preserving your customer base and search engine authority.
How to create a URL redirect in Shopify
You can create a URL redirect directly within your Shopify admin. The new destination can be a page within your store (a relative URL like /collections/shirts) or a page on a completely different website (a full URL like http://www.anothersite.com). (Creating and managing URL redirects) Redirects become active as soon as you save them.
- From your Shopify admin, go to Content, then Menus. (Creating and managing URL redirects)
- Click View URL Redirects.
- Click Create URL redirect.
- In Redirect from, enter the old URL that you want to redirect visitors from.
- In Redirect to, enter the new URL that you want to redirect visitors to. To redirect to your store's home page, enter
/. - Click Save redirect.
How to manage your Shopify URL redirects
Over time, you may accumulate a long list of redirects. Shopify provides tools to help you manage them efficiently, whether you need to find, edit, or remove them. You can filter, edit individually or in bulk, and even export or import redirects using a CSV file. (Creating and managing URL redirects)
| Task | How to do it in Shopify |
|---|---|
| Filter redirects | On the URL Redirects page, you can filter by the date they were added or use the search box to find specific URLs. You can save these filters as tabs for quick access later. (Creating and managing URL redirects) |
| Edit a redirect | Click on the redirect you wish to change, make your edits to the "Redirect from" or "Redirect to" fields, and click Save redirect. (Creating and managing URL redirects) |
| Edit in bulk | Select the checkboxes next to multiple redirects, click Edit redirect, make your changes, and click Save. (Creating and managing URL redirects) |
| Export redirects | Click the Export button, choose which redirects to include (such as all of them or just the results of a filter), select the CSV file type, and click Export URL redirects. Shopify will email you a download link for the file. (Creating and managing URL redirects) |
| Import redirects | Click Import, then Add File to upload a properly formatted CSV file. After uploading, review the import details and click Import redirects to complete the process. (Creating and managing URL redirects) |
| Delete redirects | Select one or more redirects using the checkboxes and click Delete selected redirects. You will be asked to confirm the deletion. (Creating and managing URL redirects) |
Common mistakes with Shopify URL redirects
While creating redirects is straightforward, a few common issues can prevent them from working as expected. If a redirect isn't working, it is often because the original URL isn't broken or it's a path that Shopify reserves for its own functions. (Creating and managing URL redirects)
- Redirecting a live URL: A URL redirect will only work if the "Redirect from" URL leads to a "404 Page not found" error. If the URL still loads a valid webpage, the redirect will not function. To fix this, you must first delete the page, change its status to draft, or hide the product or collection from the online store sales channel. (Creating and managing URL redirects)
- Using reserved URL paths: Shopify prevents you from redirecting certain system-level URLs. These include paths starting with
/apps,/cart,/orders, and/services. You also cannot redirect fixed paths like/productsor/collections/all. - Typos in the URLs: A simple spelling mistake in either the "Redirect from" or "Redirect to" field is a frequent cause of failure. Double-check both URLs for accuracy.
- Browser caching: If you create a redirect, test it, and then delete it, your browser might still perform the redirect because it has cached the instruction. Clear your browser's cache or use a different browser or device to confirm that a redirect has been successfully removed.
A worked example: Redirecting a seasonal collection
Imagine you run a clothing store and have a collection for your autumn apparel at the URL /collections/fall. When summer arrives, you want to hide the fall collection and guide any visitors who land on that old link to your new summer collection instead.
First, you would make the fall collection unavailable on your online store. You can do this by changing its visibility to Hidden. This action makes the /collections/fall URL a broken link, which is necessary for a redirect to work. (Creating and managing URL redirects)
Next, you would create a URL redirect:
- Redirect from:
/collections/fall - Redirect to:
/collections/summer
Now, any customer who navigates to the old fall collection URL will be automatically sent to the summer collection. When autumn comes around again and you want to feature the fall collection, you can change its visibility back to Visible. When you do this, Shopify automatically deletes the redirect because the /collections/fall URL is no longer a broken link. (Creating and managing URL redirects) If you hide the collection again next year, you will need to recreate the redirect.
Frequently asked questions
Can I redirect a URL that still works?
No, a URL redirect in Shopify only works for broken URLs that would otherwise show a "Page not found" or 404 error. (Creating and managing URL redirects) If the original URL still loads a valid webpage, the redirect will not be triggered. To make the URL available for a redirect, you must first delete, hide, or unpublish its associated page, product, or collection.
Are Shopify redirects or?
Shopify exclusively uses 301 redirects, which signal a permanent move to search engines. According to Litextension, this is beneficial for SEO because it helps transfer the ranking authority from the old URL to the new one.
Does Shopify automatically create redirects?
Yes, in some situations. For example, when you change a product's handle (the part of the URL specific to that product), Shopify automatically creates a redirect from the old URL to the new one. According to Litextension, however, it's always a good idea to double-check that the redirect was created after making changes.
What is the maximum number of redirects on Shopify?
For most Shopify plans, you can create a maximum of 100,000 URL redirects. (Creating and managing URL redirects) Stores on the Shopify Plus plan have a much higher limit.
Why isn't my redirect working for different countries?
A single URL redirect created in your admin applies to all language and market subfolders. (Creating and managing URL redirects) For example, a redirect from /products/old-shirt to /collections/shirts will work for both yourstore.com/products/old-shirt and yourstore.com/en-ca/products/old-shirt. If you need to send different markets to different destinations, you can create specific redirects for each subfolder.
Can I redirect URLs with special characters or query strings?
URLs that contain query strings, which are the parts of a URL that come after a question mark (like ?_bc_fsnf=1), may not work as expected with Shopify's URL redirect feature. (Creating and managing URL redirects) It's best to use the core path of the URL without any query parameters in the "Redirect from" field.