How to redirect all your 404s to one page (and why not the homepage)

Modified on Tue, 10 Nov at 10:20 AM

You can send every broken link on your store to one page, so no visitor ever sees an error page. This article shows the three ways to do it and helps you pick the right destination.

First: choose a good destination

⚠️ We don't recommend the homepage. When many unrelated broken links all redirect to the homepage, Google usually treats them as "soft 404s": it ignores the redirects and the old links lose their value. Visitors are also left guessing where the product they wanted went.

Better choices are pages where visitors can carry on shopping:

  • your all-products page: /collections/all
  • your search page: /search
  • a main collection or a "we've moved things around" page

Best of all is to send each broken link to its closest match, which is what AI Redirects and specific patterns do. Use a catch-all only for what's left over.

Option 1: Easy 404 Fix (simplest)

Plan: Pro+

  1. In the app, go to Redirects → Easy 404 Fix.
  2. Turn on the toggle.
  3. Enter your destination in Redirect URL.

Easy 404 Fix only catches broken links that none of your other redirects or patterns cover. Full details: Easy 404 Fix: catch every broken link.

Option 2: AI Redirects with AI Fallback (smartest)

Plan: Pro+

AI Redirects first tries to find the closest matching page for each broken link. Only when it can't find a safe match does it use your AI Fallback URL. Set it up in Redirects → AI Redirects. Full details: Set up AI Redirects.

⚠️ Use Easy 404 Fix or AI Fallback, not both.

Option 3: a catch-all pattern

Plan: Pro

  1. In the app, go to Redirects → 404 Patterns.
  2. Click Create 404 Pattern.
  3. In Pattern, enter /*
  4. In Redirect to, enter your destination, for example /collections/all
  5. Click Create Pattern.

Keep this pattern at the bottom of your pattern list, so more specific patterns are checked first.

ℹ️ Each broken URL that matches a 404 pattern is saved as its own redirect in Shopify. A catch-all pattern on a busy store can create a lot of them, and they count towards Shopify's limit of 100,000 redirects.

Bonus: send broken product links to their collection

Broken product URLs that include a collection, such as /collections/shoes/products/old-sneaker, can go to that collection instead of a general page:

  1. Go to Redirects → 404 Patterns and click Create 404 Pattern.
  2. Pattern: /collections/*/products/*
  3. Redirect to: /collections/*, using Add Target Value to carry over the first wildcard.

Not sure which option fits your store? Contact our support team and we'll help you choose. You can also book a call with our Product Manager.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article