How to create a redirect for a broken link

A redirect sends visitors who open an old or broken link to a working page. This article shows how to create one redirect, or many at once, from the 404 log. Visitors and search engines go to the new page with a 301 redirect, which tells search engines the move is permanent.

Before you start

Create one redirect

  1. In the app, open SEO audit, then open Links that return 404.
  2. On the Open tab, select the path you want to fix. A window titled Redirect /your-path opens.
  3. Redirect from shows the broken link. You cannot change it.
  4. In Redirect to, type the link of the new page, for example /collections/all. If the app found a closest match, it is already filled in.
  5. Or choose a page under Pages on your store. The list shows pages that match what you typed, and the app's Closest match first. Each entry shows its type (product, collection, page, blog post) and its link.
  6. Select Add redirect.

When it works, you see the toast "Redirect added", and the path moves to the Redirected tab.

Rules for the new link

The Redirect to field must be a link on your store.

Rule Message you may see
It must start with / Use a link on your store that starts with /, for example /collections/all.
It cannot point to checkout, cart, account or app pages Redirects can't point to checkout, cart, account or app pages.
It can have up to 255 characters This link is too long. Use up to 255 characters.
It cannot be the broken link itself Choose a page other than the broken link itself.

If the app cannot add it

The window may show a banner after you select Add redirect.

Banner What it means
/your-path opens a page again Someone created a page at that address after the 404 was recorded. Shopify only uses a redirect when the old link is broken, so this one would do nothing.
This link already redirects A redirect for this path exists already, in the app or in Shopify.

Redirect many links at once

  1. On the Open tab, tick the links you want. You can tick the box in the header to select every link on the page.
  2. Select Redirect N links. The app sends each link to its closest match.
  3. Check the list in the Redirect N links? window, then confirm with Redirect N links.

The app skips links that have no closest match. Open each of those one by one to choose a page. You can redirect up to 250 links at a time. If you ticked more, a warning asks you to untick some. To get suggestions for links without a match, see How AI-suggested redirect targets work.

Leave a link as a 404

If no page on your store is a good match, leaving the 404 is fine. Open the link and select Leave as 404. The link moves to the Left as 404 tab and no longer counts as an issue. To bring it back, open that tab and select Review again.

[!WARNING] Sending old links to your home page usually does not pass on their ranking. The window warns "Google may treat this as a broken link". Choose a collection or a similar product if you can.

After you add a redirect

The redirect is created in Shopify, so it also shows in Online Store > Navigation > URL Redirects. It also appears on the Redirects page of the app, where you can undo it for 30 days. See How to undo a redirect. The change is in History too.

Shopify allows up to 100,000 URL redirects per store. See How to redirect deleted products automatically for how the app handles that limit.

Related articles

← How the 404 log works How to redirect deleted products automatically →