# Relative Redirect

The relative-Redirect functionality in the app **redirects the visitors to the exact same page path on the destination URL (if available).**

***For Example:***

*A rule is created in the app to redirect Canadian visitors from the Global store "line-item.myshopify.com" to the Canadian store "sg-localapp.myshopify.com"*

*If visitors from Canada visit the URL `line-item.myshopify.com/products/shirt. With the relative redirect functionality, they` will be **redirected to the same page path on the destination store (Canadian store)**`sg-localapp.myshopify.com/products/shirt.`*

{% hint style="info" %}
**Please note that in case of a** [**Same-domain URL**](https://help.spicegems.com/geoip-country-redirect/country-redirect/faqs/what-is-same-domain-url) **with relative,** when you create a destination rule using the same domain URL, the redirect will occur only once per browser session.

\
For example, if you have a subfolder for the United States market (`/en-us`) and configure a rule in the app with the destination URL `demo-492.myshopify.com/en-us` to redirect US visitors accordingly, the redirect will trigger only once during the current session.
{% endhint %}

**You can enable this feature in the rule to redirect users to the exact same page (if available) on the destination store.**

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FiCG6VxQ34yok6KzcZveU%2F01.png?alt=media&#x26;token=448811f6-1762-4bfb-b402-089a6cc516fc" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you are using Shopify markets or translations, then you can manage the locale in the URL while redirecting. [Click here to learn more about preserving language code functionality](https://help.spicegems.com/geoip-country-redirect/country-redirect/language-consideration-with-relative-redirect)

&#x20;
{% endhint %}

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FsFBxFmgiHKzB8PnU5jar%2F02.png?alt=media&#x26;token=b82da82d-9110-4a76-a342-82957067f847" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please note that if the same page path/URL is not available on the destination store, it will display a 404 page.
{% endhint %}
