A Shopify redirect automatically sends visitors from an old URL to a new one. You need it when you delete a product, rename a URL or move from an existing store to Shopify. By the end of this guide, your old URLs lead to a destination again.
Prerequisites
- Access to the Shopify admin with permission for Content > Menus
- A list of the old URLs and the matching new page for each
- The old URL returns a “Page not found” error; as long as a valid page loads there, no redirect takes effect
Create a single URL redirect in Shopify
-
Open redirects. In the Shopify admin, go to Content > Menus and click View URL redirects.
URL redirects under Content > Menus -
Start a new redirect. Click Create URL redirect.
URL redirect form -
Enter the old URL. Under Redirect from, enter the old URL, for example
/products/altes-produkt. -
Enter the destination. Under Redirect to, enter the new URL. For a destination in your own store, the path is enough, such as
/collections/neuheiten; a/leads to the homepage. For a destination outside your domain, enter the full URL. -
Save. Click Save redirect.
The redirect takes effect immediately. To check it, open the old URL in a private browser window.
When Shopify offers the redirect itself
You change the URL of a piece of content in the search engine listing via the URL handle field. For pages, blogs and blog posts, the option Create a URL redirect is preselected there. For collections, you choose in the same place whether to redirect from the old URL to the new one.
Leave the option enabled. After the change, still check that the old URL arrives, especially for products.
No redirect is created when you delete something. In that case, you create it by hand.
Import redirects via CSV
In a migration or a large renaming, hundreds of URLs are involved. The import is made for that.
- Prepare the file. The CSV file contains the old URL and the destination in each row. Shopify provides a sample file in its help; keep its column headings unchanged.
- Open the import. Go to Content > Menus, click URL redirects and then Import.
- Upload the file. Click Add file, choose the CSV file and click Upload file.
- Review and import. Review the import and click Import redirects, then Close.
Using Export in the same place, you download the existing redirects as a CSV file. That is the simplest backup before larger changes.
What cannot be redirected
- Blocked prefixes. URLs that start with
/apps,/application,/cart,/carts,/orders,/servicesor/shop. - Fixed paths.
/products,/collectionsand/collections/all. - URLs with a valid page. Shopify only redirects from URLs that no longer resolve.
- Filtered collection URLs. URLs following the pattern
/collections/name/tagcount as valid, even if no product carries the tag. - The same URL with and without
.html. Shopify treats both as one URL.
URLs with appended parameters (everything after a question mark) are not always redirected as expected. Test such cases individually.
Common mistakes
- Destination is itself an error page. Typos in the Redirect to field only come to light when testing.
- Product thought to be merely hidden. A product with the status Draft returns an error page and can be redirected. If it becomes visible again, Shopify deletes the redirect.
- Everything to the homepage. A redirect only helps the visitor if the destination matches the old content.
- Redirect from
/404to the homepage. It prevents the theme editor from displaying your error page. - Deleted and checked immediately. Browsers remember redirects. After deleting, test in a different browser.
- Markets not tested. If you sell through subfolders such as
/en, check the redirect there as well.
You can delete redirects in the list: select entries, click Delete selected redirects and confirm with Delete.
Help with redirects
When an entire store moves, we plan the redirects as part of the SEO for the migration and check them after launch.