{"id":25296,"date":"2013-09-18T12:38:23","date_gmt":"2013-09-18T12:38:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/language-redirect\/"},"modified":"2017-02-11T11:22:54","modified_gmt":"2017-02-11T11:22:54","slug":"language-redirect","status":"publish","type":"plugin","link":"https:\/\/af.wordpress.org\/plugins\/language-redirect\/","author":5394287,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.5","stable_tag":"trunk","tested":"4.7.33","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Language Redirect","header_author":"Bj\u00f6rn Weinbrenner","header_description":"","assets_banners_color":"404041","last_updated":"2017-02-11 11:22:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=XS98Y5ASSH5S4","header_plugin_uri":"http:\/\/www.bjoerne.com","header_author_uri":"http:\/\/www.bjoerne.com","rating":4,"author_block_rating":0,"active_installs":100,"downloads":12919,"num_ratings":13,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"2","2":"1","3":"1","4":0,"5":"9"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"774590","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"774590","resolution":"1","location":"assets"}},"screenshots":{"1":"Options"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1431,1385,441,727],"plugin_category":[48,49],"plugin_contributors":[83294],"plugin_business_model":[],"class_list":["post-25296","plugin","type-plugin","status-publish","hentry","plugin_tags-header","plugin_tags-language","plugin_tags-multisite","plugin_tags-redirect","plugin_category-language-tools","plugin_category-maps-and-location","plugin_contributors-bjoerne","plugin_committers-bjoerne"],"banners":{"banner":"https:\/\/ps.w.org\/language-redirect\/assets\/banner-772x250.png?rev=774590","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/language-redirect_404041.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/language-redirect\/assets\/screenshot-1.png?rev=774590","caption":"Options"}],"raw_content":"<!--section=description-->\n<p>WordPress plugin which redirects from the root site of a multisite project to a language specific network site.<\/p>\n\n<p><strong>Please Note: This plugin doesn't allow content on the root site! Please read this description carefully to see if this works for you.<\/strong><\/p>\n\n<p>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']).<\/p>\n\n<p>The plugin provides a configuration page where supported languages, redirect targets and the default language can be configured.<\/p>\n\n<p>The plugin should be activated only on the root site. It shouldn't be active on the language specific network site.<\/p>\n\n<p>The plugin is developed on <a href=\"https:\/\/github.com\/bjoerne2\/language-redirect\">Github<\/a>. Feel free to fork the project or create pull requests.<\/p>\n\n<p><em>This plugin was originally developed for <a href=\"http:\/\/www.monkkee.com\/\">monkkee<\/a> and is inspired by <a href=\"http:\/\/oncleben31.cc\">oncleben31.cc<\/a><\/em><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Configure plugin (Settings -&gt; Language Redirect)<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Handle missing HTTP_ACCEPT_LANGUAGE header, see <a href=\"https:\/\/wordpress.org\/support\/topic\/undefined-index-http_accept_language\">https:\/\/wordpress.org\/support\/topic\/undefined-index-http_accept_language<\/a><\/li>\n<li>Cleanup code concerning WP code conventions<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Consider all languages of HTTP_ACCEPT_LANGUAGE based on their q factor<\/li>\n<li>Support country based locales like en-US<\/li>\n<li>Try to match languages prefixes of country based locales as a fallback, e.g. given 'en-US' in header and 'en' in configuration<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Redirect only if \/index.php was invoked. This is the case for all frontend visits.<\/li>\n<li>Don't redirect robots.txt<\/li>\n<li>Delete options when plugin is uninstalled<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Remove buggy robots.txt handling<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Don't redirect robots.txt<\/li>\n<\/ul>","raw_excerpt":"Redirects from the root site of a multisite project to a language specific network site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25296"}],"author":[{"embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bjoerne"}],"wp:attachment":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25296"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25296"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25296"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25296"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25296"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}