這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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. Feel free to fork the project or create pull requests.

This plugin was originally developed for monkkee and is inspired by oncleben31.cc

螢幕截圖

  • Options

安裝

  1. Upload plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure plugin (Settings -> Language Redirect)

評價

2018年9月8日
Couldnt redirect to another page, only to another site. This should be mentioned in the main description.
2018年5月28日
Simple and exactly what needed
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.
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個評價

貢獻者及開發者

“Language Redirect” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Language Redirect 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.1

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