What happens when you close a market
When you discontinue a Shopify market:- Market-specific URLs (e.g.,
/en-us/products/shirt) stop working - Visitors get 404 errors when accessing these URLs
- You lose potential customers who land on broken pages
Common market URL patterns
Shopify markets typically use these URL structures: Subdomain-based:us.yourstore.com/products/shirtuk.yourstore.com/collections/sale
yourstore.com/en-us/products/shirtyourstore.com/en-gb/collections/sale
Redirect rules work for path-based market URLs. For subdomain-based markets, you’ll need to configure redirects at your domain DNS level.
Create a market redirect rule
1
Identify your market URL structure
Before creating the rule, determine the pattern used by your discontinued market.Example:
/en-us/*(US market with English locale)
2
Open Redirect Pro
From your Shopify admin, open the Redirect Pro app.
3
Go to Redirect Rules
Click Redirect rules in the app navigation menu.
4
Click Create redirect rule
Click the Create redirect rule button.
5
Enter the market URL pattern
In the Redirect from field, enter the market URL pattern using wildcards.Example for US market:
/en-us/products/⑴This matches all URLs that start with /en-us/products/6
Enter the primary store destination
In the Redirect to field, specify where to send visitors.Example 1 - Preserve the path:
/products/⑴ (sends /en-us/products/shirt → /products/shirt)Example 2 - Send to homepage:
/ (sends all market URLs to homepage)7
Save the rule
Click Save in the contextual save bar at the top of the page. The redirect rule is now active for the discontinued market.You can create additional rules to capture other patterns like collection pages and blog posts.
Redirect pattern examples
Single market, broad pattern
Scenario: US market used/en-us/ prefix. One rule captures all paths (products, collections, pages, etc.).
Rule:
- Redirect from:
/en-us/⑴/⑵ - Redirect to:
/⑴/⑵
/en-us/products/shirt→/products/shirt/en-us/collections/sale→/collections/sale/en-us/pages/about→/pages/about
Cons: Harder to track analytics by content type
Single market, specific patterns
Scenario: US market used/en-us/ prefix. Create separate rules for products, collections, etc.
Rule 1 (Products):
- Redirect from:
/en-us/products/⑴ - Redirect to:
/products/⑴
- Redirect from:
/en-us/collections/⑴ - Redirect to:
/collections/⑴
- Redirect from:
/en-us/pages/⑴ - Redirect to:
/pages/⑴
Cons: More rules to manage
Multiple markets, one rule per market
Scenario: Closed US and Canada markets with/en-us/ and /en-ca/ prefixes.
Rule 1 (US market):
- Redirect from:
/en-us/⑴/⑵ - Redirect to:
/⑴/⑵
- Redirect from:
/en-ca/⑴/⑵ - Redirect to:
/⑴/⑵
Redirect to subdomain or secondary domain
Scenario: US market moved from/en-us/ path to us.yourstore.com subdomain.
Rule:
- Redirect from:
/en-us/⑴/⑵ - Redirect to:
https://us.yourstore.com/⑴/⑵
/en-us/products/shirt→https://us.yourstore.com/products/shirt
- Redirect from:
/en-us/⑴/⑵ - Redirect to:
https://us-store.com/⑴/⑵
When redirecting to external domains or subdomains, always include the full URL with
https:// in the “Redirect to” field.After discontinuing the market
Once the market is closed and your rules are live, Enterprise users can optimize their redirects: View rule matches to see which discontinued market URLs are getting high traffic, then convert high-traffic URLs to 301 redirects for SEO benefits and faster redirects.Related guides
- Create a redirect rule - Detailed rule creation steps
- Test redirect rules - Verify market redirects work
- View and manage rule matches - Monitor market redirect usage (Enterprise)
- Convert matches to permanent redirects - Optimize high-traffic market URLs
Need help?
Questions about setting up market redirects?- Contact support - Get personalized guidance for your market structure