URL Mapping
Redirect users from Old Destination URL to a specific New Destination.
Last updated
Redirect users from Old Destination URL to a specific New Destination.
Last updated
th URL Mapping, you can redirect users from an Old Destination URL to a New Destination URL.
Example Scenario:
You have two Shopify stores:
USA Store → geoip-country-redirect-demo.myshopify.com
Canada Store → sg-local-app.myshopify.com
A Shirt product exists in both stores. However, the shirt in the Canadian store became unavailable. Instead of users landing on a broken or unavailable page, you want to redirect them to an alternative product page.
How URL Mapping Works:
If a user tries to visit: Product URL in the USA store: https://geoip-country-redirect-demo.myshopify.com/products/french-salt-1
Instead of being redirected to the same product URL in the Canadian store (sg-local-app.myshopify.com/products/french-salt-1), they will be redirected to sg-local-app.myshopify.com/products/french-salt-2 (a new mapped URL in the app).
This ensures a smooth user experience by redirecting visitors to an active and relevant product page instead of a discontinued or unavailable one.
Toggle to enable the URL Mapping feature
Redirect From – Enter the path/URL from which you want to redirect the visitors to the new destination URL.
Type: Exact –Redirect users when the exact path is matched in the “Redirect from” field. It requires a complete URL to be added in the Redirect From field. Contains – Redirect users when the contents added in the Redirect from’ field is detected. The /path is required to be added if the Contains type is selected.
Examples of Exact and Contains:
For Exact - add the URL [sg-local-app.myshopify.com/products/french-salt-1] For Contains - add the path [/products/french-salt-1]
Redirect To – Enter the New Destination URL on which you want to redirect visitors.
Origin: Add the required /path of the new page. This will redirect visitors to the new Destination URL.
Origin + Locale: Add the /path and it will add locale to the path (if available)
Full URL: add the complete URL of the New destination page.
Examples of the above options:
With Origin: add the path /products/french-salt-2 With Origin + Locale: add the path /products/french-salt-2. This will add the language locale to the URL en/products/french-salt-2 With Full URL: add the complete URL - https://sg-local-app.myshopify.com/products/french-salt-2