SpiceGems Knowledge Base
All AppsContact Us
GeoIP Country Redirect
GeoIP Country Redirect
  • 📖Overview
  • Getting Started
  • Country Redirect
    • Create Redirect Rule
    • Create Exception-Based Redirect Rule
    • Bypass the Redirection
    • Redirect Templates (Popup/Banner)
      • Customize Redirect Templates
    • Dynamic Flags
    • FAQs
      • How to redirect visitor forcefully?
      • How to add Flags with the countries in the switcher?
      • What is Same-domain?
      • Can the app perform instant redirection before the page load?
      • How to setup different redirection type on different rules
      • How to Create Popups in Multiple Languages
      • Can the app remember the user's selection when displaying a pop-up/banner
      • How can i test the redirect rules
      • Can I prevent the redirection for specific redirect rule
      • How to forward existing parameters while redirection
  • Country Blocker
    • Create Blocker Rule
    • Create an Exception Based Rule
    • Customize Blocker Template
    • Country Blocker Whitelist Settings
    • Bypass Blocker Rules
    • FAQs
      • How to block certain countries to access my store?
      • How to block certain visitors by IPs
      • How to Bypass from Blocker Rules
      • Can I set a custom message for blocked visitors?
      • Can I allow some users from the block location to access the store?
      • My analytics are showing discrepancies.
  • General Settings
    • Relative Redirect
    • Language Consideration with Relative Redirect
    • Whitelist (Rule based)
    • UTM Parameters
    • Page-Specific Redirection
    • URL Mapping
    • Alpha-2 country codes
  • GeoMarket Redirect
    • GeoLocation Popup
    • Geolocation Popup Editor
    • Auto-Redirect
  • GeoIP Switcher
    • Shopify Market Switcher
    • Manual Switcher
    • Preserve Path
    • Language Consideration
    • Customize switcher template
  • GDPR Info Bar
  • Global Whitelist Settings
  • General FAQs
    • How to disable the app?
    • Can I use the app on multiple stores in the same browser?
    • Foundation of a Redirect Rule
    • Understanding the App functionality
    • Login Issues
    • Disable Prevent Cross-Site Tracking in Safari on Mac
  • App Pricing
Powered by GitBook
On this page
  • Step 1: Click on Edit Rule and Navigate to “Advance Setting”
  • Step 2: Enable URL Mapping option
  • Step 3: Enter path/URL in "Redirect From"
  • Step 4: Enter the path/URL in the "Redirect To" field
  • Step 5: Click on Save to apply the changes
  1. General Settings

URL Mapping

Redirect users from Old Destination URL to a specific New Destination.

PreviousPage-Specific RedirectionNextAlpha-2 country codes

Last updated 1 month ago

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.

Note: The functionality will only work with the Relative Redirect enabled.

Step 1: Click on Edit Rule and Navigate to “Advance Setting”

Step 2: Enable URL Mapping option

Toggle to enable the URL Mapping feature

Step 3: Enter path/URL in "Redirect From"

  • 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]

Step 4: Enter the path/URL in the "Redirect To" field

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

Step 5: Click on Save to apply the changes

In case of any queries, please feel free to reach us at help@spicegems.com