How to create a redirects pattern?

Quick redirect app redirect pattern setup

Here's a detailed guide on how to create redirect patterns using the Quick Redirects & 404 Shopify app:

Step 1: Access the Quick Redirects & 404 App

  1. Log in to your Shopify Admin panel.
  2. Navigate to Apps from the left sidebar.
  3. Click on Quick Redirects & 404 to open the app dashboard.

Step 2: Create a Redirect Pattern

  1. From the app dashboard, click on the Create Redirect button.
  2. Select the Pattern Redirect option.

Step 3: Set Up the Redirect Pattern

  1. From URL (Source URL Pattern):

    • Enter the URL pattern you want to redirect from.
    • Use placeholders (wildcards) for dynamic sections.
    • Example:
      • /products/* → Redirects all product URLs.
      • /collections/sale/* → Redirects all items under the "sale" collection.
  2. To URL (Destination URL):

    • Enter the target URL where users will be redirected.
    • Use {{ wildcard }} to capture and forward dynamic parts.
    • Example:
      • /collections/all/{{ wildcard }}
      • This will keep the dynamic portion intact during the redirect.
  3. Redirect Type:

    • 301 (Permanent Redirect): Use for permanent URL changes.
    • 302 (Temporary Redirect): Use for temporary URL changes.

Step 4: Save and Activate the Redirect

  1. Click Save Redirect to apply the pattern.
  2. Confirm the redirect appears in the Redirect List.

Step 5: Test Your Redirect

  1. Open your Shopify store and visit a URL matching the redirect pattern.
  2. Ensure the URL redirects correctly to the new destination.

✅ Examples of Redirect Patterns

  1. Redirect all old product pages to a new collection:

    • From: /products/*
    • To: /collections/all
  2. Redirect discontinued items to a general category:

    • From: /collections/clearance/*
    • To: /collections/discounted
  3. Redirect blog articles with dynamic slugs:

    • From: /blogs/news/*
    • To: /blogs/latest/{{ wildcard }}
Back to blogs