# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/geoip-country-redirect/country-redirect/relative-redirect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
