Choose your approach
You can create redirect rules in two ways: Create from template - Use pre-built patterns for common scenarios (quickest option) Create custom rule - Build your own pattern with wildcard tokens (most flexible)Not sure which to use? Start with templates - they cover most common use cases. Use custom rules only when you need specific URL matching that templates don’t provide.
Create a redirect rule
1
Open Redirect Pro
From your Shopify admin, open the Redirect Pro app.
2
Go to Redirect Rules
Click Redirect rules in the app navigation menu.
3
Click Create Redirect Rule
Click the Create redirect rule button.
4
Enter your Redirect from URL
You can click Use template to start from the most common use cases, or enter a custom Redirect from URL. Use a least one wildcard token:
- Use
⑴to match any characters - Example:
/products/⑴matches/products/shoes
5
Enter your Redirect to URL
In the Redirect to field, specify where matched URLs should go:
- Use fixed paths:
/new-path/page, or, - Use wildcard tokens to create flexible destination URLs based on the visited Redirect from URL:
/new-path/⑴
6
Save the rule
Click Save in the contextual save bar at the top of the page. The redirect rule is now active and will start redirecting relevant traffic immediately.
Understanding wildcard tokens
Wildcard tokens: ⑴ ⑵ ⑶ ⑷ ⑸
Wildcard tokens match any set characters in a URL between two forward slashes. You can use up to 5 tokens per rule, numbered ⑴ through ⑸.
Examples:
Reusing tokens in the destination
Wildcard tokens capture text from the matched URL and can be reused in the redirect destination. Single token example: Rule:- Match:
/products-old/⑴ - Redirect to:
/products/⑴
/products-old/shirt→/products/shirt/products-old/blue-jeans→/products/blue-jeans
- Match:
/blog/⑴/category/⑵ - Redirect to:
/news/⑴/⑵
/blog/2024/category/updates→/news/2024/updates⑴captures “2024”,⑵captures “updates”
Common redirect rules
Redirect discontinued products
Redirect discontinued products
Scenario: Unpublished or deleted products URLs to the all products page.Rule:
- Redirect from:
/products/⑴ - Redirect to:
/collections/all
Redirect discontinued collections
Redirect discontinued collections
Scenario: Unpublished or deleted collection paths to the all products page.Rule:
- Redirect from:
/collections/⑴ - Redirect to:
/collections/all
Redirect locale-specific URLs
Redirect locale-specific URLs
Scenario: Moved from
/en/page structure to /pageRule:- Redirect from:
/en/⑴ - Redirect to:
/⑴
Rule matching behavior
Important things to know:- 301s take priority - If a URL matches both a rule and a 301 redirect, the 301 will be used
- 5 token maximum - You can use tokens
⑴⑵⑶⑷⑸(no more than 5 per rule)
After creating a rule
Once your redirect rule is saved: Immediate effects:- Rule starts matching URLs right away
- Visitors are redirected automatically
- Each activation counts toward your monthly tracked visits quota
- Test with sample URLs to verify correct matching
- Check rule matches (Enterprise) to see actual triggered URLs
- Monitor your usage quota if you expect high traffic
Troubleshooting
Rule not redirecting? Check these common issues:- App embed disabled: Redirect rules require the app embed to be activated in your theme editor. Go to Theme Editor → App Embeds and enable Redirect Pro.
- Quota limit reached: If you’ve used your monthly tracked visits, redirect rules pause until your quota resets. Check usage on the Settings page or upgrade your plan.
- Pattern mismatch: Verify your test URL matches the URL structure from your rule. See Redirect rule not working.
Related guides
- Understanding redirect rules - Learn how rules work
- Test redirect rules - Verify your rules
- Edit or delete redirect rules - Manage rules
- View and manage rule matches - See triggered URLs (Enterprise)
Need help?
Having trouble creating a redirect rule? Check these resources:- Redirect rule not working - Common issues
- Contact support - Get personalized help