Create a pattern redirect to automatically forward groups of broken URLs that match a custom structure to a single destination URL, or to different URLs based on a new structure.
If you're new to patterns, you can learn how they work and when you should use them.
To create a pattern redirect:
Pattern redirects use 'wildcard tokens' that act as placeholders for unknown parts of a URL. You can use up to 5 wildcard tokens in a single pattern.
For example, a Redirect from URL of /products/⑴
would match any broken product page, where ⑴
is a wildcard token representing any product handle in your store.
- From your Shopify admin, open the Redirect Pro app.
- From the app navigation menu on the left, open the Pattern Redirects page.
- Click the Create pattern redirect button.
- Enter a Redirect from URL which includes at least one wildcard token.
- Each wildcard token represents a string of text between two forward slashes, To create a pattern for URLs with multiple ‘sections’ between forward slashes, a wildcard token should be used for each ‘section’.
- Enter a Redirect to URL. This doesn't have to include a wildcard token.
- You can enter a single destination URL, or,
- Use the wildcard tokens by matching them up from the Redirect from URL to create a unique destination URL for each redirect.
- Click Save redirect. The pattern redirect will now be active.
Tip: After creating a pattern redirect you can test it's working.
Want to turn pattern matches into 301s?
If you’re on the Enterprise plan, you can use Pattern Matches to view which customer visits have triggered your pattern redirects. From there, you can convert high-traffic paths into 301 redirects for better SEO performance.
Pattern Matches are only available on the Enterprise plan. Learn more about plan options.