# How to test the app & redirect rules

In this post, I am going to cover the topic on how to test the redirect rules after setting up the app.

**Let’s consider a scenario:**

I’m running a store [https://all-round-store.myshopify.com](https://all-round-store.myshopify.com/) with the GeoIP country Redirect installed on it.

The app is set up so that the **US and Canadian** visitors will be displayed a POPUP to get redirected to their country store i.e. <https://sg-localapp.myshopify.com/>

It is difficult for me to test the redirect rules because **I am located in India.**

{% hint style="info" %}
**In order to test the redirect rules for different country locations, we will use the VPN extension.**
{% endhint %}

A VPN app or extension allows you to set a virtual location in the browser. So, using it you can test the behavior of your store for other country visitors.

**Here are the steps involved:**

**Step 1**. Install a VPN app or extension. In our case, we are using the HOLA VPN. You can install it using the link <https://hola.org/>

**Step 2**. Make sure the app is enabled on your store.

**Step 3**. Visit your store and set the country in the VPN for which you want to test the redirect rules.

In our case, we are visiting [https://all-round-store.myshopify.com](https://all-round-store.myshopify.com/) with the country selected as the “**US**” in the VPN.

**Step 4**. The POPUP is displayed as per the selected country in the VPN. Click on “**YES**” to redirect or “**NO**” to stay on the same store.

{% hint style="warning" %}
*<mark style="color:orange;">**Please note that when the visitors click Yes/No button then it is saved in the cookies.**</mark>*
{% endhint %}

**Step 5**. **Clear the browser cookies** and **Repeat step 3** by selecting the country location as CANADA in the VPN.

**Step 6**. Sometimes, due to the browser cookies, the VPN does not set an accurate location. **So, in order to get the best results clear the browser cookies before testing the redirect rules with the VPN.**

Similarly, you can test the redirect rules for other countries as per your requirements.


---

# 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/faqs/how-to-test-the-app-and-redirect-rules.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.
