# Relative-Redirect

The relative-Redirect functionality of the app **redirects the visitors to the exact same page path as the destination URL.**

> ***For Example:***
>
> *If a rule is created in the app to redirect Canadian visitors from "globalshop.com" to "myshop.com"*
>
> *and someone from Canada visit to the URL "globalshop.com/products/shirt" then by the **relative-redirect feature** they will be **redirected to the same page path like** "myship.com/products/shirt"*

You can enable this feature while creating and editing the redirect rule

<figure><img src="/files/rc1kuBL3TxLgoQAyBQWq" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %} <mark style="color:orange;">**Please note**</mark> <mark style="color:orange;">that when a visitor is redirected and the same page URL is not present on the other website then it will show a</mark> <mark style="color:orange;">**404 error.**</mark>
{% 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-legacy/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.
