How to redirect all of your 404s to the homepage?

Modified on Sun, 26 Jul at 2:47 AM

There are a few ways to automatically redirect broken 404 pages back to your homepage or relevant collection pages, depending on your setup and preferences.

Method 1: Use Easy 404 Fix (Quickest & Easiest)

If you want a global, hands-off fallback without setting up custom rules, use Easy 404 Fix:

  1. Open the Easy Redirects app.

  2. Go to Settings $\rightarrow$ Easy 404 Fix.

  3. Toggle the feature to Enable.

  4. By default, all non-existent 404 pages will automatically redirect to your homepage (/).




ℹ️ Priority Order Note

Simple Redirects and Redirect Patterns always take priority over Easy 404 Fix. If a broken link matches an individual redirect rule or pattern, the app will execute that rule first. Easy 404 Fix acts as your safety net for any 404 that doesn't match an explicit rule.


Method 2: Use Redirect Patterns (Catch-All Wildcard)


(Requires Easy Redirects Premium – $10/month)

If you prefer using a wildcard pattern rule:

  1. Go to Redirect Patterns and click Create Redirect Pattern.

  2. Set the Redirect From URL to: /✱

  3. Set the Redirect To URL to: /

  4. Click Create Redirect Pattern.

Note: Typing an asterisk (*) in the path text field will automatically convert into a value.


Method 3: Redirect Product Page 404s to Their Collection Page (Regex)


If you want broken product links to dynamically land on their parent collection page rather than sending everyone to the homepage:

  1. Go to Redirect Patterns and click Regex Redirect Pattern.

  2. Paste this Path URL: /\/(products\/.*)$/i

  3. Set the Target URL to: /

  4. Click Create Regex Redirect Pattern.



How this works:

  • Standalone broken product links (/products/product-name) will redirect to your homepage (/).

  • Collection-based broken product links (/collections/collection-name/products/product-name) will redirect to that specific collection page (/collections/collection-name/).

⚠️ Important: Avoid using Shopify's core system paths (such as /products or /collections) as exact source paths, as this can interfere with normal store navigation.



If you need help setting this up, feel free to reach out to our support team and we’ll be happy to assist!



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