> For the complete documentation index, see [llms.txt](https://help.spicegems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.spicegems.com/geoip-country-redirect/country-redirect/relative-redirect.md).

# 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**](/geoip-country-redirect/general-faqs/what-is-a-same-domain-url.md) **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="/files/guVNxYVOIH2H0YQRuQG7" 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](/geoip-country-redirect/country-redirect/relative-redirect/language-consideration-with-relative-redirect.md)&#x20;
{% endhint %}

<figure><img src="/files/5eSptf8ryi5l7PhrwDIM" 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 %}
