Changeset 1593794
- Timestamp:
- 02/11/2017 11:22:43 AM (9 years ago)
- Location:
- language-redirect/trunk
- Files:
-
- 2 edited
-
language-redirect.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
language-redirect/trunk/language-redirect.php
r1593569 r1593794 5 5 Description: Redirects from the root site of a multisite project to a language specific network site. 6 6 Author: Björn Weinbrenner 7 Version: 1.0. 47 Version: 1.0.5 8 8 Author URI: http://www.bjoerne.com 9 9 */ … … 63 63 64 64 function language_redirect_is_robots_txt() { 65 return false; // TODO65 return preg_match('/\/robots\.txt$/', $_SERVER['REQUEST_URI']); 66 66 } 67 67 -
language-redirect/trunk/readme.txt
r1593569 r1593794 14 14 15 15 == Description == 16 WordPress plugin which redirects from the root site of a multisite project to a language specific network site. 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']). 16 WordPress plugin which redirects from the root site of a multisite project to a language specific network site. 17 18 **Please Note: This plugin doesn't allow content on the root site! Please read this description carefully to see if this works for you.** 19 20 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']). 17 21 18 22 The plugin provides a configuration page where supported languages, redirect targets and the default language can be configured. 19 23 20 The plugin should be activated only on the root site. Once redirected it is useless andshouldn't be active on the language specific network site.24 The plugin should be activated only on the root site. It shouldn't be active on the language specific network site. 21 25 22 26 The plugin is developed on [Github](https://github.com/bjoerne2/language-redirect). Feel free to fork the project or create pull requests. … … 54 58 = 1.0.4 = 55 59 * Remove buggy robots.txt handling 60 61 = 1.0.5 = 62 * Don't redirect robots.txt
Note: See TracChangeset
for help on using the changeset viewer.