URL Mapping
Last updated
Last updated
Using URL Mapping, you can redirect users from an Old Destination URL to a specific New Destination URL.
For example: If you have created a rule to redirect CA visitors on "sg-localp-app.myshopify.com" from "line-item.myshopify.com". And a visitor lands on the page like "sg-local-app.myshopify.com/products/product-1" then it will be redirect to "line-item.myshopify.com/products/product-1" as per the rule creating.
Note: The functionality will only work with the Relative Redirect enabled.
Incase "product-1" is not available on the "line-item.myshopify.com" store and you want to redirect visitor on another product/page on destination store, this feature helps you to achieve this.
Redirect From – In this field you need to add the current destination URL where you don't want to redirect the visitor. Here you can enter the complete URL or /relative path with the required Type.
Type: Exact –Redirect users when the exact path is matched in the “Redirect from” field. Contains – Redirect users when the contents added in the Redirect from’ field is detected
Redirect To – In this field, you need to add the New Destination URL to which you want to redirect users.
New Destination URL field
With the Origin option, you need to add the /pathname to redirect the users to the added path with the Actual Destination URL (added in the Redirect Settings). For example – add ‘/products‘ in the field and the user will be redirected to https://xyz.myshopify.com/products.
With the Origin + Locale option, you need to add the /path name to redirect the users to the added path with the Actual Destination URL (Locale added for market) (added in the Redirect Settings). For example – add ‘/products‘ in the field and the user will be redirected to https://xyz.myshopify.com/en/products.
With the Full URL option, you need to add the complete URL on which you want to redirect the users https://xyz.myshopify.com/collections/all.