Title: Polylang in a multisite environment
Last modified: August 21, 2016

---

# Polylang in a multisite environment

 *  Resolved [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/)
 * Hi,
    sorry for opening a new topic but can’t find a solution. As written in the
   title I’m in a multisite installation with polylang activated in each site (no
   network activation) because I need specific polylang settings for each site.
 * My structure:
 * site.com is the main site
    site.com/ch-it/ (default language) site.com/ch-de/
   site.com/ch-en/
 * site.com/de/ (is the second site)
    site.com/de-en/ (is the en translation for
   the second site)
 * in the second site I set the options to manage the language by different domains
   because the site.com/de is the main url for the second site.
 * it works all great except the site.com/de-en/ that return a 404, how can I solve
   this issue…
 * This is my permalink settings:
 * [http://site.com/%postname%/](http://site.com/%postname%/) (for the first site)
   
   [http://site.com/de/%postname%/](http://site.com/de/%postname%/) (for the second
   site)
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873910)
 * Hi!
 * If you use /de/ for site root and for a language slug (German), you are likely
   to get conflicts.
 * Did you create English content? If you are using a static front page, did you
   translate it in English?
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873912)
 * Hi Chouby,
    Yes I did, I created an home content in english.
 * The site work fine with the /de/ as site root and lang slug, the problem is only
   for english with slug de-en.
    The static home page exist in german and english,
   on german there aren’t problems but in english it return a page 404 🙁
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873914)
 * Can you provide a link?
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873915)
 * Sure but u have to change your file host because the site is under development
   in a test server…
 * The first one is the main site
 * 194.209.9.44 Chiccodoro.com/ch-it/
    194.209.9.44 Chiccodoro.com/de/
 * Let me know if you have some trouble to view the site
    Thank you very much for
   your support
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873920)
 * I believe that the problem is your structure:
    site.com/de-en/ leads you to first
   site, not second one You should move it to site.com/de/en/ or site.com/de/de-
   en/
 * But again I believe that it can’t work as is as Polylang will not find the right
   language between German and English since both codes are in url. You have to 
   use different slugs for your sites and languages. That sure won’t break the German
   pages, but will surely break English pages.
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873926)
 * Ok I will try to set /de/de and /de/en.
    Sometimes de-en redirect to first site,
   maybe for a cache problem? What is your suggestion for the structure?do you think
   that having a site root named /de/ this could cause problems?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873927)
 * Yes I believe it is a problem. Polylang looks at language code in url and with/
   de/en, there are 2 language codes in your url. This is likely that the wrong 
   one will be chosen, thus causing unexpected issues.
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873928)
 * Ok I will try to find a solution by another way, I let you know if I ll manage
   to do 🙂
    Thank you
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873958)
 * I just uploaded a new beta version (1.5dev27) which should have a more robust
   way of detecting language in url for cases like yours (i.e site name = language
   code).
    See [http://polylang.wordpress.com/2014/04/21/polylang-1-5-beta/](http://polylang.wordpress.com/2014/04/21/polylang-1-5-beta/)
   for more info on other improvements of the beta version. I still don’t recommend
   using this version for a production site. I am interested in your feedback if
   you decide to test it.
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4873991)
 * ok Chouby,
    tomorrow I’ll do some tests.
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4874021)
 * Hello,
    1.5beta installed and tested, all seems to work properly.
 * I solved my issues for multisite in this way: now I set German as default language
   for the second site and it works as you can see at this url: Chiccodoro.com/de
   
   The English version, instead, works as you can see from this url: Chiccodoro.
   com/de/en/. It’s not exactly the way I wanted but it is a great solution as well.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Polylang in a multisite environment’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/polylang-in-a-multisite-environment/#post-4874021)
 * Status: resolved