How to create a redirects pattern?

Share
Here's a detailed guide on how to create redirect patterns using the Quick Redirects & 404 Shopify app:
Step 1: Access the Quick Redirects & 404 App
- Log in to your Shopify Admin panel.
- Navigate to Apps from the left sidebar.
- Click on Quick Redirects & 404 to open the app dashboard.
Step 2: Create a Redirect Pattern
- From the app dashboard, click on the Create Redirect button.
- Select the Pattern Redirect option.
Step 3: Set Up the Redirect Pattern
-
From URL (Source URL Pattern):
- Enter the URL pattern you want to redirect from.
- Use placeholders (wildcards) for dynamic sections.
- Example:
- /products/* → Redirects all product URLs.
- /collections/sale/* → Redirects all items under the "sale" collection.
-
To URL (Destination URL):
- Enter the target URL where users will be redirected.
- Use {{ wildcard }} to capture and forward dynamic parts.
- Example:
- /collections/all/{{ wildcard }}
- This will keep the dynamic portion intact during the redirect.
-
Redirect Type:
- 301 (Permanent Redirect): Use for permanent URL changes.
- 302 (Temporary Redirect): Use for temporary URL changes.
Step 4: Save and Activate the Redirect
- Click Save Redirect to apply the pattern.
- Confirm the redirect appears in the Redirect List.
Step 5: Test Your Redirect
- Open your Shopify store and visit a URL matching the redirect pattern.
- Ensure the URL redirects correctly to the new destination.
✅ Examples of Redirect Patterns
-
Redirect all old product pages to a new collection:
- From: /products/*
- To: /collections/all
-
Redirect discontinued items to a general category:
- From: /collections/clearance/*
- To: /collections/discounted
-
Redirect blog articles with dynamic slugs:
- From: /blogs/news/*
- To: /blogs/latest/{{ wildcard }}