A redirect pattern is one rule that catches many URLs at once. Instead of creating a redirect for every product, you write the URL structure once and Easy Redirects handles every URL that matches.
ℹ️ Plan: 404 Patterns are available on Pro and above. Live Patterns need Pro+.
404 Patterns or Live Patterns?
| 404 Patterns | Live Patterns | |
| Matches | Only URLs that return a 404 (broken links) | URLs that still work |
| Use it when | You deleted or renamed many pages, for example after a migration | You're changing a whole URL structure on purpose, for example moving a blog |
| Where | Redirects → 404 Patterns | Redirects → Live Patterns |
How wildcards work
The asterisk * stands for "any text". Whatever the * matches in the old URL can be carried over to the new one. In short: wildcard in → wildcard out.
| Pattern | Redirect to | Example |
/product/* | /products/* | /product/pink-socks → /products/pink-socks |
/blogs/news/* | /blogs/journal/* | /blogs/news/summer-sale → /blogs/journal/summer-sale |
/products/*-2024 | /collections/all | /products/blue-mug-2024 → /collections/all |
You can use more than one * in a pattern. The app colour-matches each wildcard with its place in the target, so you can see what goes where.
Create a pattern
- In the app, go to Redirects → 404 Patterns (or Live Patterns).
- Click Create 404 Pattern (or Create Live Pattern).
- In Pattern, enter the old URL structure. Type
*, or click Add Wildcard, where the URL changes. - In Redirect to, enter the new URL. Click Add Target Value to place the matched part in the new URL.
- Click Create Pattern.

Advanced: regex patterns
If wildcards aren't enough, use a regular expression. Click Create 404 Regex (or Create Live Regex), enter the expression and the target, then click Create Regex.
Example: ^/collections/sale-(.+)$ → /collections/clearance sends every old sale collection to your clearance collection.
Tip: You can ask Shopify Sidekick in your admin to write a regex for you from a plain description.
Good to know
- Order matters. If a URL matches more than one pattern, the pattern higher in the list wins.
- Single redirects come first. A 404 redirect for an exact URL always beats a pattern.
- Each matched 404 becomes a real redirect. The first time a broken URL matches a 404 pattern, Easy Redirects sends the visitor on and saves a permanent 301 redirect in Shopify for that URL. These count towards Shopify's limit of 100,000 redirects (20,000,000 on Shopify Plus), so keep patterns specific.
- Live Patterns use a JavaScript redirect, because Shopify doesn't allow 301 redirects from pages that still work.
- Patterns don't work if the Easy Redirects app embed is turned off in your theme.
- Avoid patterns that start with a reserved path on its own, such as
/productsor/collections, or you may redirect pages you didn't mean to.
Still stuck? Contact our support team and we'll help you. 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
Feedback sent
We appreciate your effort and will try to fix the article