Plugin Directory

Changeset 1593794


Ignore:
Timestamp:
02/11/2017 11:22:43 AM (9 years ago)
Author:
bjoerne
Message:

1.0.5: Don't redirect robots.txt

Location:
language-redirect/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • language-redirect/trunk/language-redirect.php

    r1593569 r1593794  
    55Description: Redirects from the root site of a multisite project to a language specific network site.
    66Author: Björn Weinbrenner
    7 Version: 1.0.4
     7Version: 1.0.5
    88Author URI: http://www.bjoerne.com
    99*/
     
    6363
    6464function language_redirect_is_robots_txt() {
    65     return false; // TODO
     65    return preg_match('/\/robots\.txt$/', $_SERVER['REQUEST_URI']);
    6666}
    6767
  • language-redirect/trunk/readme.txt

    r1593569 r1593794  
    1414
    1515== 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']).
     16WordPress 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
     20The 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']).
    1721
    1822The plugin provides a configuration page where supported languages, redirect targets and the default language can be configured.
    1923
    20 The plugin should be activated only on the root site. Once redirected it is useless and shouldn't be active on the language specific network site.
     24The plugin should be activated only on the root site. It shouldn't be active on the language specific network site.
    2125
    2226The plugin is developed on [Github](https://github.com/bjoerne2/language-redirect). Feel free to fork the project or create pull requests.
     
    5458= 1.0.4 =
    5559* 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.