• Resolved moisescalzo

    (@moisescalzo)


    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:

    https://site.com/%postname%/ (for the first site)
    https://site.com/de/%postname%/ (for the second site)

    https://www.ads-software.com/plugins/polylang/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Chouby

    (@chouby)

    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

    (@moisescalzo)

    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

    (@chouby)

    Can you provide a link?

    Thread Starter moisescalzo

    (@moisescalzo)

    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

    (@chouby)

    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

    (@moisescalzo)

    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

    (@chouby)

    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

    (@moisescalzo)

    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

    (@chouby)

    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 https://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

    (@moisescalzo)

    ok Chouby,
    tomorrow I’ll do some tests.

    Thread Starter moisescalzo

    (@moisescalzo)

    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.