> 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-legacy/create-redirect-rule.md).

# Create Redirect Rule

Let us understand the rules creation process step-by-step:

Click on the "create" rule button to go on rule creation page.

<figure><img src="https://2407849133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdbLqz7fE3vIPX3kttjjf%2Fuploads%2FwUkdMJEcomjMId035MfE%2Fimage.png?alt=media&amp;token=eec7c25d-dc10-4878-8651-a4d6e1c9d23e" alt=""><figcaption></figcaption></figure>

Fill in the following fields under the **General Settings and Advance Settings** section:

<figure><img src="https://2407849133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdbLqz7fE3vIPX3kttjjf%2Fuploads%2FXI52bprBgFC9Yah2UMSG%2Fimage.png?alt=media&amp;token=71d2e284-8b92-45e6-9d66-8a192a3180a8" alt=""><figcaption></figcaption></figure>

## 1. General Settings Configuration

* **Enter Redirect Rule Name**\
  Provide a unique name for the redirect rule.
* **Select Visitor Countries**\
  Choose the country you want this redirect rule to apply to. Search and select a country.
* **Redirect To Store URL**\
  Enter the URL of the store or page to which visitors from the selected country should be redirected.
* **Enter Store Name**\
  Specify the store name associated with this redirect rule
* **Enable Redirect Rule**\
  Check this box to activate the redirect rule immediately.
* **Enable Relative Redirect**\
  If enabled, visitors will be redirected to the same relative page on the new domain. For example, if a visitor is on `/products/xyz` in the main store, they will be redirected to `/products/xyz` in the target store.

{% hint style="info" %}
[What is relative redirect?](/geoip-country-redirect-legacy/relative-redirect.md)
{% endhint %}

## **2. Advanced Settings** (Optional)

Expand the **Advance Settings** section to configure UTM parameters for tracking campaigns:

<figure><img src="https://2407849133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdbLqz7fE3vIPX3kttjjf%2Fuploads%2FX7znjb6hjcmVVhFvklKd%2Fimage.png?alt=media&amp;token=be2014c6-2779-4df5-84e7-000dd9b959c2" alt=""><figcaption></figcaption></figure>

* **UTM Source, UTM Medium, UTM Campaign**\
  Add UTM parameters to track the performance of your redirects in analytics tools. For example:
  * UTM Source:&#x20;
  * UTM Medium:&#x20;
  * UTM Campaign:
* **Enable UTM Forward**\
  Toggle this option to forward the UTM parameters with the redirect.

{% hint style="info" %}
[Learn more about UTM parameters](/geoip-country-redirect-legacy/utm-parameters-in-the-geoip-country-redirect.md)
{% endhint %}
