Support » Plugin: Polylang » Different domains and Multisite

  • Hi,

    First of all, thank you for this wonderful tool, we moved from WPML and Polylang is a better fit for what we do.

    We have a website with network capabilities enabled, and the polylang (1.5) plugin installed globally on the network. We have multiple websites, each with multiple languages.

    Our WordPress (3.9.1) is installed in a subfolder, and the project files (themes, plugins, uploads) are in an “app/” folder at root. The wp-config.php file is updated to reflect this structure.

    The problem appears when we try to use the “The language is set from different domains” option (in the Settings pane of polylang) : We have multiple domains, let’s say and The blog domain is set as “” and its path is “/”. Then, in the polylang configuration, we specified that “” would be the english version of the site. The default site is on “”.

    When we try to reach “” (english version of a site), we are redirected to the network default site,

    Is it something you already heard about ? How can we solve this ? I haven’t found recent information adressing this issue, but if you have indications, maybe we can get our hands dirty with the code and try to get more information.

    Thank you,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,
    same problem within my multisite instalation.

    I’ve setup custom domains within MU Domain Mapping and uncheck option “Disable primary domain check.” because I don’t want something like like a primary domain. I need only newly created domains.

    So I created for my default language and set as primary and for second language. Second language domain is redirected to the first default language domain.

    Sorry for my english 🙂

    Exact same problem here.. I’m just not sure if it is a MU problem or a Polylang problem.

    I’ve might have found a sollution for you aswell.


    In “Domain Mapping” on your network admin select “Disable primary domain check”.
    Now all domains linked to a blog will be working. Keep in mind that this can result in duplicate content if you don’t use multiple languages!

    So if you have more client-sites running in this network you can’t use the primary-domain function of MU Domain Mapping. Instead you’ll need to redirect the non-primary domains in your server (add sites as an alias). With this workflow you won’t need the add the non-primary domains in your wordpress network since the server is handling these redirections.

    IMPORTANT: Make sure that the siteurl and the homurl is the same as your primary language domain!

    Maybe not the best sollution since you can only do this if you need an Plesk of Cpanel in order to do this, but it works :).

    What would be awesome is that MU Domain Mapping could create an update where you can select de “Disable primary domain check” for each blog…

    I didn’t think much about your issue, but here’s someone who did:
    Polylang 1.5.6 and Polylang 1.6 beta2

    Good one, I haven’t thought about the admin-login url. I’ve tried it and you can indeed login with the other domain aswell and this changes the language domains in Polylang. Though in my case it all still works.. even the alternate url’s in the head is still working.

    the main thing is that you must not save the language settings on an other domain than the primary-language domain.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different domains and Multisite’ is closed to new replies.