Title: Language Redirect
Author: bjoerne
Published: <strong>2013 年 9 月 18 日</strong>
Last modified: 2017 年 2 月 11 日

---

搜索插件

![](https://ps.w.org/language-redirect/assets/banner-772x250.png?rev=774590)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/language-redirect_404041.svg)

# Language Redirect

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

[下载](https://downloads.wordpress.org/plugin/language-redirect.zip)

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

 [支持](https://wordpress.org/support/plugin/language-redirect/)

## 描述

WordPress plugin which redirects from the root site of a multisite project to a 
language specific network site.

**Please Note: This plugin doesn’t allow content on the root site! Please read this
description carefully to see if this works for you.**

The decision which language should be used is based in the browser language of the
user which is usually sent as ‘Accept-Language’ header (PHP: $_SERVER[‘HTTP_ACCEPT_LANGUAGE’]).

The plugin provides a configuration page where supported languages, redirect targets
and the default language can be configured.

The plugin should be activated only on the root site. It shouldn’t be active on 
the language specific network site.

The plugin is developed on [Github](https://github.com/bjoerne2/language-redirect).
Feel free to fork the project or create pull requests.

_This plugin was originally developed for [monkkee](http://www.monkkee.com/) and
is inspired by [oncleben31.cc](http://oncleben31.cc)_

## 屏幕截图

[⌊操作⌉⌊操作⌉[

操作

## 安装

 1. Upload plugin to the `/wp-content/plugins/` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. Configure plugin (Settings -> Language Redirect)

## 评价

![](https://secure.gravatar.com/avatar/b6b2a6afe8818942ed20a019910bce860648008b9f820e05355cc45e70d4f3db?
s=60&d=retro&r=g)

### 󠀁[Total shit](https://wordpress.org/support/topic/total-shit-2/)󠁿

 [rolandaxenberg](https://profiles.wordpress.org/rolandaxenberg/) 2018 年 9 月 8
日

Couldnt redirect to another page, only to another site. This should be mentioned
in the main description.

![](https://secure.gravatar.com/avatar/da5c061bbbdb93041a50c0e5bf152418f50ec8f95e7f5abccdfc51515e5d3325?
s=60&d=retro&r=g)

### 󠀁[Good one](https://wordpress.org/support/topic/good-one-319/)󠁿

 [Jean](https://profiles.wordpress.org/webdizainereu/) 2018 年 5 月 28 日

Simple and exactly what needed

![](https://secure.gravatar.com/avatar/09d31e81e117287ba28774ed83121904df98ecfa19e12c8153202a36ef249bac?
s=60&d=retro&r=g)

### 󠀁[works great even in Mobile](https://wordpress.org/support/topic/works-great-even-in-mobile/)󠁿

 [astrgn](https://profiles.wordpress.org/astrgn/) 2018 年 4 月 17 日

This plugin works great. Very easy to setup. Works on mobile too. Many thanks to
the developer.

![](https://secure.gravatar.com/avatar/b1025c2f311e3cf46ad69cdafb0011de5eb005ceb8331ca27452350db5636f4e?
s=60&d=retro&r=g)

### 󠀁[Great job](https://wordpress.org/support/topic/great-job-618/)󠁿

 [diversamente0434](https://profiles.wordpress.org/diversamente0434/) 2018 年 2 
月 28 日

Simple and easy!

![](https://secure.gravatar.com/avatar/38271038d5be21129473a350d3bfb8e29558777d517d7d4448048d3cd880c72c?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-250/)󠁿

 [gsziszi](https://profiles.wordpress.org/gsziszi/) 2016 年 9 月 3 日

It is perfect tool for auto redirecting. Especially with lincolnphipps’s patch. 
Thanks a lot! Sure it must be set well, but works like a charm.

![](https://secure.gravatar.com/avatar/8f7449c6be2c658b55e7ddf71842f67289a20b699dfbe6379e672b9fef575f0b?
s=60&d=retro&r=g)

### 󠀁[Works fine!](https://wordpress.org/support/topic/works-fine-544/)󠁿

 [twentyZEN](https://profiles.wordpress.org/twentyzen/) 2016 年 9 月 3 日

Great extension to Multilingual Press… Just make sure you read correctly. Don’t 
network activate the plugin. Only activate it at the root blog.

 [ 阅读所有13条评价 ](https://wordpress.org/support/plugin/language-redirect/reviews/)

## 贡献者及开发者

「Language Redirect」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Language Redirect」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/language-redirect)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * Handle missing HTTP_ACCEPT_LANGUAGE header, see [https://wordpress.org/support/topic/undefined-index-http_accept_language](https://wordpress.org/support/topic/undefined-index-http_accept_language)
 * Cleanup code concerning WP code conventions

#### 1.0.2

 * Consider all languages of HTTP_ACCEPT_LANGUAGE based on their q factor
 * Support country based locales like en-US
 * Try to match languages prefixes of country based locales as a fallback, e.g. 
   given ‘en-US’ in header and ‘en’ in configuration

#### 1.0.3

 * Redirect only if /index.php was invoked. This is the case for all frontend visits.
 * Don’t redirect robots.txt
 * Delete options when plugin is uninstalled

#### 1.0.4

 * Remove buggy robots.txt handling

#### 1.0.5

 * Don’t redirect robots.txt

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**10 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **4.7.35**
 *  语言
 * [English (US)](https://wordpress.org/plugins/language-redirect/)
 * 标签
 * [header](https://cn.wordpress.org/plugins/tags/header/)[language](https://cn.wordpress.org/plugins/tags/language/)
   [multisite](https://cn.wordpress.org/plugins/tags/multisite/)[redirect](https://cn.wordpress.org/plugins/tags/redirect/)
 *  [高级视图](https://cn.wordpress.org/plugins/language-redirect/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  9 条 5 星评价     ](https://wordpress.org/support/plugin/language-redirect/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/language-redirect/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/language-redirect/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/language-redirect/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/language-redirect/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/language-redirect/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/language-redirect/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/language-redirect/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XS98Y5ASSH5S4)