Title: Simple Country Redirect with IP geolocation
Author: tahirasadli
Published: <strong>2025 年 5 月 25 日</strong>
Last modified: 2025 年 12 月 19 日

---

搜索插件

![](https://ps.w.org/simple-country-redirect-with-ip-geolocation/assets/icon-256x256.
png?rev=3300089)

# Simple Country Redirect with IP geolocation

 作者：[tahirasadli](https://profiles.wordpress.org/tahirasad/)

[下载](https://downloads.wordpress.org/plugin/simple-country-redirect-with-ip-geolocation.1.0.8.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/#developers)

 [支持](https://wordpress.org/support/plugin/simple-country-redirect-with-ip-geolocation/)

## 描述

The Country Redirect plugin allows you to redirect users based on their country 
using Cloudflare’s IP Geolocation feature. You can configure custom redirection 
rules based on the user’s country.

It also allows you to enable or disable redirection, and configure the duration 
of a cookie that prevents repeated redirections. The plugin is fully configurable
through a settings page in the WordPress admin dashboard.

### Features

 * Redirect users based on their country using Cloudflare’s IP Geolocation.
 * Add, edit, and delete country-to-URL redirection rules from the WordPress admin.
 * Enable/disable redirection functionality directly from the settings page.
 * Set the cookie lifetime to prevent repeated redirection.
 * Secure and follows WordPress plugin standards.

### Configuration

 * **Enable Redirects**: Enable or disable the plugin’s redirection feature.
 * **Redirect Rules**: Define country-to-URL redirection rules in the settings.
 * **Cookie Lifetime**: Configure how many days to prevent repeated redirection.

### Support

If you encounter any issues or need help, please visit the plugin’s support forum
on WordPress.org.

### License

This plugin is licensed under the GPLv2 or later license.

## 屏幕截图

[⌊Screenshot of the plugin settings page.⌉⌊Screenshot of the plugin settings page
.⌉[

Screenshot of the plugin settings page.

## 安装

 1. Upload the plugin directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the plugin settings page to add redirection rules and configure the plugin.

## 常见问题

### How do I add redirection rules?

Go to the plugin settings page in the WordPress admin and enter the country-to-URL
mapping in the “Redirection Rules” section.

### How does the plugin know the user’s country?

The plugin uses Cloudflare’s IP Geolocation feature to detect the user’s country.

### How does the cookie work?

Once a user is redirected based on their country, a cookie is set to prevent the
user from being redirected again during the specified lifetime.

### Can I turn off the redirection feature?

Yes, you can enable or disable the redirection functionality from the plugin settings
page.

### Where do I configure the redirect URL for each country?

You can add or edit the country-to-URL mapping directly from the plugin settings
page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Simple Country Redirect with IP geolocation」是开源软件。 以下人员对此插件做出
了贡献。

贡献者

 *   [ tahirasadli ](https://profiles.wordpress.org/tahirasad/)

[帮助将「Simple Country Redirect with IP geolocation」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-country-redirect-with-ip-geolocation)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-country-redirect-with-ip-geolocation/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-country-redirect-with-ip-geolocation/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/simple-country-redirect-with-ip-geolocation/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-country-redirect-with-ip-geolocation/)。

## 更新日志

#### 1.0.8

 * Confirmed compatibility with WordPress 6.9

#### 1.0.7

 * Confirmed compatibility with WordPress 6.9

#### 1.0.6

 * Reorganize plugin files & folders

#### 1.0.5

 * Fix bug on settings page

#### 1.0.4

 * Update text domain

#### 1.0.3

 * Update text domain

#### 1.0.2

 * Update plugin informations

#### 1.0.1

 * Add placeholders to input fields

#### 1.0.0

 * Initial release.
 * Added functionality to redirect users based on Cloudflare’s IP Geolocation.
 * Ability to add, edit, and delete country-to-URL redirection rules.
 * Configurable cookie lifetime to prevent repeated redirects.

## 额外信息

 *  版本 **1.0.8**
 *  最后更新：**11 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.8 或更高版本 **
 *  已测试的最高版本为 **6.9.11**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/)
 * 标签
 * [cloudflare](https://cn.wordpress.org/plugins/tags/cloudflare/)[country](https://cn.wordpress.org/plugins/tags/country/)
   [geolocation](https://cn.wordpress.org/plugins/tags/geolocation/)[geolocation redirect](https://cn.wordpress.org/plugins/tags/geolocation-redirect/)
   [redirect](https://cn.wordpress.org/plugins/tags/redirect/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-country-redirect-with-ip-geolocation/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/simple-country-redirect-with-ip-geolocation/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-country-redirect-with-ip-geolocation/reviews/)

## 贡献者

 *   [ tahirasadli ](https://profiles.wordpress.org/tahirasad/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-country-redirect-with-ip-geolocation/)