Redirects from the root site of a multisite project to a language specific network site.
I like Plugins doing EXACTLY what they are supposed to. This is small and simple, just ad 2 lines in the config and it works.
I have a multisite with a / (root) for the english and /fr/ and /it/ for french and italian. There is no real overlap in posts - the page and menus are completely different. Yes I should of have a root and then /en/ for english but the client wanted a default on the root.
I wanted french browsers to redirect but if they then clicked the english (root) site then they would...redirect back to the French site with this language-redirect 1.0.0 plugin. I did not want that I wanted them to be able to browse around anywhere on our root or subsites.
So I patched the code and added a feature that sets a cookie if the root is visited and the redirect fires. Once that has done once then the cookie is checked and the redirect is not done again. Thus with my patch a french browser would hit the root and redirect once but then they can go to the root and not get redirected. cookie lifetime is 28 days.
See the github for the changes.
Easy to setup, also for redirecting to subdomains.
I have two network sites, an english (/en) and a german (/de) one. The plugin redirect to the sites. With the plugin I have a multilingual solution for free.
You must log in to submit a review. You can also log in or register using the form near the top of this page.