Test your redirect rule
The best way to test a redirect rule is to visit a URL that matches your “Redirect from” pattern.Identify a test URL
Choose a URL that matches your “Redirect from” pattern and currently shows a 404 error.Example: If your rule is
/products/⑴, test with a broken link like https://yourstore.com/products/shirtUnderstanding the redirect delay
You may notice a split-second delay where the 404 page flashes before redirecting. This is expected behavior. Why the delay happens:- Redirect rules use JavaScript that runs in the browser rather than 301 redirects
- The browser must load the 404 page first, then execute the redirect
- This creates a brief visible delay
- Browser caching: After the first visit, the browser caches the redirect and subsequent visits are much faster.
- Convert to 301 redirects (Enterprise): For high-traffic URLs, use rule matches to identify frequently-accessed URLs and convert them to 301 redirects. This eliminates the delay entirely and provides SEO benefits.
301 redirects happen before the page loads, so there’s no visible delay. Consider converting your most-visited URLs to 301s for a better user experience.
What to test
Verify rule matching
Test URLs that should match: Rule: Redirect from/blog/old-posts/⑴
Test these (should redirect):
/blog/old-posts/announcement✓/blog/old-posts/update-2023✓
Verify wildcard tokens
If using multiple tokens, confirm they capture correctly: Rule:- Redirect from:
/blog/⑴/category/⑵ - Redirect to:
/news/⑴/⑵
/blog/2024/category/updates
- Should redirect to:
/news/2024/updates - Verify both “2024” and “updates” appear in the destination
Common issues
Rule not redirecting at all
Rule not redirecting at all
Possible causes:
- App embed not activated in theme editor
- Usage quota limit reached
- “Redirect from” URL doesn’t actually show a 404 error (page is active)
- Pattern doesn’t match the URL being testing
Redirects to wrong destination
Redirects to wrong destination
Possible causes:
- Wildcard tokens in wrong order in “Redirect to” field
- Wrong destination URL configured
Related guides
- Create a redirect rule - Set up rules to test
- Edit or delete redirect rules - Fix issues found during testing
- View and manage rule matches - Monitor real usage (Enterprise)
- Convert matches to permanent redirects - Eliminate redirect delays (Enterprise)
Need help?
If your rule isn’t working as expected during testing:- Redirect rule not working - Troubleshooting guide
- Contact support - Get personalized help