> 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 their destination URL.**

**How it works**

* Rule Name: Indian Redirect
* Country Name: India
* Destination URL: [**https://demo-492.myshopify.com/products**](https://demo-492.myshopify.com/products)

**Result:** If Indian visitors access primary store's product page [**https://myspicestore.in/products**](https://myspicestore.in/products) directly then they will redirect to the exact path to their destination store [**https://demo-492.myshopify.com/products**](https://demo-492.myshopify.com/products) with **relative-redirect** functionality.

**Without relative-redirect**: They will be redirected to the homepage of the destination store.

### How to enable relative-redirect:

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2Fce4v6dSAksfLO4p5y2JA%2FRelative-1.png?alt=media&amp;token=40ae6497-4cdb-4357-bfb4-c5d80b39a643" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FkBUeOYSYdKBVaJtrL0B1%2FRelative-2.png?alt=media&amp;token=e6ac6cda-4651-47bf-8c5f-c830800c3857" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Relative Redirect -** visitors can be redirected to the exact same path on their destination URL.

**a. Default**- This will keep the priority of locale according to the following priorities:&#x20;

Priority 1: Destination URL&#x20;

Priority 2: Landing URL

**b.** **Locale from Destination URL** - This will keep the priority of locale according to the destination URL added in the rule.

{% endhint %}

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;
