Overview
Semantic redirects use AI to understand the intent and meaning behind search queries, automatically directing customers to relevant pages instead of showing search results. Unlike keyword-based redirects, semantic matching understands variations and related terms, providing a more flexible and intelligent redirect experience.Before you start
- Redirects only work for text search queries. They don’t apply to image search, similar product search, or browse requests.
- When Layers triggers a redirect, customers see no search results—Layers immediately directs them to the target URL.
- Your frontend integration must handle the
_meta.redirectresponse from the Search API.
Prerequisites
Ensure your frontend implementation checks for the_meta.redirect field in search responses and navigates to the provided URL. See the Search API documentation for technical details.
Steps
- Go to Settings → Semantic Redirects in the Layers dashboard.
- Click Create Redirect.
- Enter the search terms that should trigger the redirect:
- Add the primary term or phrase customers might search for
- The semantic matching will automatically understand related variations
- Enter the target URL:
- Provide the full URL where customers should be redirected
- Use absolute URLs (e.g.,
https://yourstore.com/pages/contact-us)
- Save and enable the redirect.
Common use cases
Customer support queries
Redirect searches for help-related terms to your support page: Search term: “customer service” Redirect URL:https://yourstore.com/pages/contact-us
The semantic matching will also catch variations like “help”, “support”, “contact us”, “need help”, etc.
Brand landing pages
Direct brand-specific searches to dedicated brand pages: Search term: “nike” Redirect URL:https://yourstore.com/collections/nike
The semantic matching will also catch variations like “nike shoes”, “nike products”, “nike brand”, etc.
Policy and information pages
Route policy-related queries to relevant information: Search term: “return policy” Redirect URL:https://yourstore.com/policies/refund-policy
The semantic matching will also catch variations like “returns”, “refund”, “how to return”, etc.
Promotional campaigns
Send sale-related searches to campaign landing pages: Search term: “sale” Redirect URL:https://yourstore.com/collections/sale
The semantic matching will also catch variations like “clearance”, “discount”, “deals”, “what’s on sale”, etc.
How semantic matching works
Semantic redirects use AI to understand query intent, not just exact keyword matches. This means:- “need help” matches a redirect configured for “customer service”
- “how do I return something” matches a redirect configured for “return policy”
- “where can I get support” matches a redirect configured for “help”
Testing redirects
Use the Test Text Search tool to verify your semantic redirects:- Enter a search query that should trigger your redirect.
- Check the response for the
_meta.redirectfield. - Verify the redirect URL is correct.
- Test variations of your target terms to ensure semantic matching works as expected.
Best practices
- Use general terms - Configure redirects with broad, general terms rather than specific variations. The semantic matching will handle related queries automatically.
- Test thoroughly - Verify redirects work for expected queries and don’t trigger unexpectedly for product searches.
- Monitor search analytics - Review which queries trigger redirects to identify gaps or opportunities for additional redirects.
- Use absolute URLs - Always provide full URLs including the protocol (https://) to ensure redirects work correctly.
- Avoid over-redirecting - Don’t redirect queries that should show product results. Reserve redirects for informational queries, support requests, and specific landing pages.
Auto redirect (experimental)
You can enable auto redirect so the Layers pixel handles semantic redirects automatically — the customer is navigated to the redirect URL without your frontend needing to process the_meta.redirect response.
- Go to Settings → Semantic Redirects.
- Scroll to the Experimental card.
- Toggle Auto Redirect on.
Automatic page crawler
In addition to manually creating redirects, Layers includes an automatic page crawler. It scans your Shopify pages daily and creates redirects for informational content like FAQs, return policies, shipping pages, and contact pages. Crawler-generated redirects appear in your Settings → Semantic Redirects list with a Crawler badge in the Source column. Manually created redirects display a Manual badge. You can edit or delete crawler-generated redirects the same way you manage manual ones. The crawler will not overwrite or conflict with your manual redirects. If you’ve already created a redirect for a particular page or term, the crawler skips it. For more details on how the crawler works and what pages it targets, see Semantic Redirects — Automatic page crawler.Troubleshooting
Redirect not triggering:- Check that the redirect is enabled in Settings → Semantic Redirects
- Test the query in the Test Text Search tool to see the API response
- Verify the URL is correct and uses the full absolute path
- Check if another redirect with similar terms might be matching first
- Refine your search terms to be more specific to informational queries
- Test with various queries to identify false positives
- Consider using more specific terms that clearly indicate non-product intent
- Edit the redirect’s search terms or target URL in Settings → Semantic Redirects
- Delete the redirect if it’s not relevant — the crawler will not recreate it for 30 days
See also
- Semantic Redirects - Feature overview and technical details
- Search API - Technical documentation for the
_meta.redirectresponse field - Test text search - Testing and debugging search queries