Creating and managing pattern redirects

Use pattern redirects to keep visitors on relevant pages.

Creating and managing pattern redirects

Pattern redirects use a Javascript-based redirect in the browser to redirect visitors from any broken links hat match a completely custom URL structure to a single destination URL, or to different URLs based on a new structure.

Visits to pattern redirects use up your plan allowance. Learn more about usage allowances and changing your plan.

If a detected broken link matches a pattern redirect and an automatic redirect, the pattern redirect will take priority in creating a URL redirect for the broken link. Similarly, an individual 301 redirect will take priority over both automatic and pattern redirects.

Creating pattern redirects

Pattern redirects use 'wildcard tokens' that represent one or more unspecified characters in a broken link. You can use up to 5 wildcard tokens in a single pattern redirect.

For example, a Redirect from URL of /products/⑴ would redirect any broken product page, where  is a wildcard token representing any product name URL slug.

Steps:

  1. From your Shopify admin, open Redirect Pro.
  2. Open the Pattern Redirects page.
  3. Click Create pattern redirect.
  4. Add a Redirect from URL which must include 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’.
  5. Add a Redirect to URL which 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.
  6. Click Save redirect.

Testing pattern redirects

After creating a pattern redirect, you can test it's working by visiting a broken link on your store which matches the Redirect from URL structure.

If your pattern redirect isn't working, you can learn why this might be the case.

Editing pattern redirects individually

Redirect Pro does not support bulk editing of pattern redirects.

Steps:

  1. From your Shopify admin, open Redirect Pro.
  2. Open the Pattern Redirects page.
  3. Click on the pattern redirect you want to edit.
  4. Click Edit.
  5. Enter your desired changes.
  6. Click Save redirect.

Deleting pattern redirects

You can delete individual pattern redirects, or multiple at once. Note that this action can't be undone.

Steps:

  1. From your Shopify admin, open Redirect Pro.
  2. Open the Pattern Redirects page.
  3. Click on the pattern redirects you want to delete.
  4. Click Delete on the action menu.
  5. Click Delete on the confirmation modal.