Shopify Redirects Guide
Radiant (Shopify Design and Development Agency)
We design and build beautiful, highly converting Shopify stores.
Redirects are an essential part of managing a dynamic website, especially an online shop. Whether you're reorganising your product offerings, migrating from another platform, or simply updating URLs, setting up redirects ensures a smooth customer experience and preserves your site's SEO performance. In this guide, we'll dive deep into the topic of redirects, why they matter, and how you can efficiently manage them on Shopify.
What Are Redirects?
A redirect is a method of sending users and search engines from one URL to another. This is commonly done when the original URL no longer exists or has been replaced.
There are several types of redirects, with the most common being:
When you, or a Google bot visits a website, the website's server sends a message to your browser to let it know whether it can load the page or not. These messages are called status codes,and they are hidden in the code of the website and let the browser know if the page loaded successfully, if there's an error, or if the page has moved.
In Shopify, 301 redirects are the ones that are used by default, because they permanently redirect traffic from one page to another, ensuring customers and search engines can find the updated content.
Why Are Redirects Important?
Redirects play a crucial role in maintaining a seamless user experience and preserving your website's search engine optimisation (SEO) efforts. Here’s why they matter:
We've seen redirects overlooked time and time again by merchants, leading to SEO issues. My advice is: it's not as complicated as it looks - keep an eye on Search Console to identify errors, and make sure you're redirecting any 404 pages each month.
James Lane, CEO at Radiant
When Do You Need to Set Up Redirects on Shopify?
There are several situations where setting up redirects in Shopify becomes necessary. Let’s explore the most common scenarios:
1. Removing Products or Collections
When you remove products or collections from your Shopify store, visitors may still attempt to visit these pages via direct links, bookmarks, or search engine results. Without redirects, they will encounter a 404 error page. Setting up redirects ensures visitors are sent to a relevant alternative page, such as a related product or collection.
2. Migrating from Another Platform
Migrating to Shopify from another e-commerce platform usually results in different URL structures. For example, a product URL on your previous platform may look entirely different from how Shopify generates URLs.
Setting up redirects from your old URLs to the new ones will ensure that any inbound traffic from old links is not lost and continues to flow seamlessly to your new Shopify store. This is an extremely important area of migration, as if not done right, redirects may cause significant loss to traffic and revenue.
3. Updating URL Structures or Product Names
As your business evolves, you may need to update your URL structures or product names to better reflect your offerings. For example, changing "best-winter-coat" to "top-winter-jacket" would require a redirect to ensure that any old links continue to work. Without a redirect, both customers and search engines could lose track of the updated content.
How to Create Redirects in Shopify
Shopify makes it easy to create URL redirects through its built-in tools. There are two primary methods for setting up redirects in Shopify.
Method 1: Using Shopify’s URL Redirects Tool
Shopify has a simple tool that allows you to create individual URL redirects directly from the admin dashboard.
Method 2: How to Automatically Create Redirects in Shopify When Editing Products or Collections
In addition to using the URL Redirects tool and manual code, Shopify offers a default method for setting up redirects directly when editing products or collections. This is one of the simplest and most convenient ways to manage redirects when making updates to your store’s content.
Shopify makes it easy to set up a redirect automatically when you're editing the URL handle of a product or collection. Here’s how it works:
领英推荐
Example:
Suppose you change a product's URL from /winter-coat to /best-winter-jacket. In that case, Shopify will automatically redirect anyone who tries to visit the old URL /winter-coat to the new URL /best-winter-jacket, as long as you leave the "Create a URL redirect" box checked.
This method is the quickest and easiest way to manage redirects when you're simply updating a product or collection's URL and don't need to handle complex redirect scenarios.
Method 3: Manual Redirect Setup via Liquid Code (Advanced)
For more complex redirects or situations where bulk changes aren't possible through the admin panel, you can implement custom redirects using Shopify's Liquid code. This method is more advanced and requires familiarity with Shopify’s theme files and coding. We don't recommend using this method unless you are confident that this is the best way for you to set up a redirect.
liquid
Copy code
{% if request.path == "/old-product" %}
? <meta http-equiv="refresh" content="0; url=/new-product" />
{% endif %}
How to Create Bulk Redirects in Shopify
If you have a large number of URLs to redirect, creating them one by one can be time-consuming. In such cases, you can use Shopify apps or external tools to create bulk redirects efficiently.
Method 1: Shopify Admin CSV Upload
Shopify allows you to upload a CSV file with bulk redirects, streamlining the process for larger migrations or updates.
Example:
Redirect from
Redirect to
/old-product-1
/new-product-1
/old-collection
/new-collection
Method 2: Using Shopify Apps for Bulk Redirects
If you have more complex requirements or need additional features, Shopify apps can simplify the process of creating bulk redirects. These apps usually allow you to do the following:
Conclusion
Shopify redirects are essential for maintaining your store's SEO value, ensuring a smooth user experience, and keeping traffic flowing to the right places. Whether you're removing outdated products, migrating from another platform, or restructuring your URLs, redirects help keep everything connected.
By following the steps outlined in this guide, you can create individual or bulk redirects on Shopify with ease. Don’t let broken links or 404 errors impact your store’s performance—take control with effective redirects!