
Introduction #
A website may serve visitors from multiple countries, but not every visitor necessarily needs to see the same content. Businesses with international customers often create country-specific pages for localized content, regional promotions, products, services, or pricing. For websites built with Wix, IP2Location Country Redirector provides a way to automatically redirect visitors to different pages based on their detected country.
This article explains how country-based redirection works and how to configure it on a Wix website using IP2Location Country Redirector.
What Is Country-Based Redirection #
Country-based redirection is the process of sending website visitors to a specific page based on their country. A visitor’s IP address can be used to determine their approximate geographic location. The detected country is then matched against a set of redirect rules configured by the website owner.
For example, a website could have the following configuration:
| Visitor Country | Destination Page |
|---|---|
| Malaysia | Malaysia page |
| Singapore | Singapore page |
| United States | US page |
| United Kingdom | UK page |
When a visitor from Malaysia accesses the website, the corresponding redirect rule can send them directly to the Malaysia-specific page. Similarly, visitors from other configured countries can be directed to their respective pages. As a result, this eliminates the need for visitors to manually locate the appropriate regional version of a website.
Why Redirect Wix Visitors by Country #
Country-based redirection can be particularly useful for businesses that operate across multiple markets for several key reasons:
Localized Content #
Businesses can create separate pages containing information relevant to specific countries. This may include local contact information, business details, language, or other regional content.
Regional Promotions #
Promotions and marketing campaigns are often available only in selected markets. Therefore, country-based redirects can direct visitors straight to the appropriate promotional landing page.
Country-Specific Products and Services #
Some products or services may only be available in certain countries. Redirecting visitors based on their location can help them find the products or services available in their market.
Regional Pricing #
Businesses operating internationally may use different currencies or pricing structures for different markets. Country-specific pages can display the appropriate information to visitors.
International Marketing Campaigns #
Marketing teams can create dedicated landing pages for individual countries and direct traffic from each market to the corresponding page.
How IP2Location Country Redirector Works #
To achieve this, IP2Location Country Redirector uses IP geolocation to determine the visitor’s country and subsequently applies the redirect rules configured for the Wix website.
The process can be summarized as:

For example, a website owner could configure a rule for Malaysia that redirects visitors from Malaysia to a dedicated /malaysia page. In turn, additional rules can be set up for other countries according to the website’s requirements.
How to Install IP2Location Country Redirector on Wix #
Before creating a redirect rule, install the IP2Location Country Redirector app on your Wix website.
- Log in to your Wix Dashboard
- Go to the Apps > App Market.
- Search for IP2Location Country Redirector and select the app from the search results.
- Click Add to Site to install the app on your Wix website.

- Click Agree & Add to complete the installation.

- The app has been successfully installed.
How to Create a Country Redirect Rule #
Follow these steps to configure a country-based redirect rule in IP2Location Country Redirector.
- Open IP2Location Country Redirector by navigating to Apps > Country Redirector.
- Click Add Rule to create a new redirect rule.

- Select the country whose visitors you want to target. For example, select Malaysia to redirect visitors from Malaysia.
- Enter the origin path where the redirect rule should apply. You can leave this field empty if you want the rule to match all pages on your website.
- Enter the URL where you want to redirect visitors from the selected country. This can be a page on your Wix website or an external URL.
- Select one of the available redirection types:
- Redirect – Visitors from the selected country are redirected immediately to the destination URL.
- Show Dialog – Visitors see a dialog box before being redirected, allowing them to choose whether to remain on the current page or continue to the destination.
- Review the rule settings and click Add Rule to save the country redirect rule.

- If Show Dialog is selected, customize the dialog under the Dialog Template section. You can edit the title, message, and button label displayed to visitors.

- If needed, enter IP addresses in the IP whitelist to exclude them from redirection. You can also enable the option to skip bots and crawlers so they are not redirected.

- Once done, save your settings to apply the changes.
How to Test the Country Redirect Rule #
After creating the redirect rule, test your Wix website to verify that visitors from the targeted country are redirected as expected.
- Visit your published Wix website in a browser.
- If you configured the rule with Show Dialog, visitors from the targeted country will see the configured dialog box.

- Click Stay Here to remain on the current page, or click Continue to proceed to the configured destination URL.
- After clicking Continue, the visitor will be redirected to the destination URL specified in the redirect rule.
For example, if the rule targets visitors from Malaysia and the destination URL is https://www.google.com, a visitor from Malaysia will see the configured dialog and can click Continue to be redirected to Google.
Watch the video below for a step-by-step guide on installing and configuring IP2Location Country Redirector on Wix.
Conclusion #
Country-based redirection helps Wix website owners deliver more relevant content while effectively managing visitors across global markets. By using IP2Location Country Redirector, you can create custom redirect rules for specific countries, select target pages or URLs, and decide whether to redirect visitors immediately or prompt them with a confirmation dialog. Additionally, features such as IP whitelisting, bot and crawler exclusion, and dialog customization give you total control over your website’s redirection behavior.
Get Started with IP2Location Country Redirector #
IP2Location Country Redirector is available through the Wix App Market and includes a 7-day free trial.
