• Hi,

    We can’t figure this problem out and hoping someone here can help.

    We run WP Multisite and when we enable Polylang, it automatically puts an “/en” on our homepage URL so every visitor of the website then receives a 404 page.

    On the back-end, we then go into Polylang Settings and try and remove the “/en” facility to then click Save, but then receive a “WordPress fail – do you want to retry” message.

    We don’t know how to work around this and don’t understand why the default behaviour of Polylang would be to break a website, because it leaves us in a position we can’t even use the plugin.

    Defaults should be to leave URL’s / permalinks as is and get the Admin to change settings on the back end.

    Any ideas how this can be resolved?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    Did you add any /en/ directory on the WordPress root?

    Thread Starter MailShark

    (@mailshark)

    Hi. Just checked, no, no /en off the wordpress root.

    Checked .htaccess file also, nothing in there performing any redirections either.

    The problem is Polylang adds the https://www.example.com/en to the end of the URL and trying to get rid of it from WordPress backend fails. Better if it didn’t add the /en to begin with, at least then can try and configure the module.

    Plugin Support Chrystl

    (@chrystl)

    On the back-end, we then go into Polylang Settings and try and remove the “/en” facility to then click Save, but then receive a “WordPress fail – do you want to retry” message.

    What do you mean? Do you speak about the “The language is set from the directory name in pretty permalinks” in the URL modifications (Settings > Languages > Settings tab)?

    Thread Starter MailShark

    (@mailshark)

    Hi Chrystl. Yes, on the WP backend, as soon as we activate the Polylang module, it automatically *adds* the /en to our website.

    Adding the https://www.example.com/en breaks the website as trying to visit https://www.example.com sends you to https://www.example.com/en

    Because https://www.example.com/en doesn’t exist, a 404 is produced (no proper honepage is shown).

    We then go to the WP backend, to Settings -> Languages -> Settings and the default is:

    BULLET The language is set from the directory name in pretty permalinks

    We then try and select:

    BULLET The language is set from content

    and click “Save Changes”

    then get “WordPress Failure Notice” with:

    Are you sure you want to do this?

    Please try again.

    and can’t continue. Have to deactivate the module.

    Plugin Support Chrystl

    (@chrystl)

    Did you check the option “Hide URL language information for default language”?

    Thread Starter MailShark

    (@mailshark)

    Hi. That is the option I need. I need that set by default when the Polylang is activated.

    Because it’s disabled by default, I can’t ever click “Save Settings” because it always gives me “WordPress Failure Notice”.

    If I couldhave the “Hide URL language information for default language” set I think the module will work.

    Plugin Support Chrystl

    (@chrystl)

    As Admin you should be able to modify the Polylang settings as you want.
    There is maybe a conflict with your theme or a plugin.

    Could you try to modify your settings with:
    * Your theme + Polylang + no other plugins?
    If it fails:
    * Twenty fifteen + Polylang + no other plugins. Then switch back on your theme.

    Thread Starter MailShark

    (@mailshark)

    Hi Chrystl. That is a good idea. We use over 60 plugins so it’s no small feat but will organise this over the weekend and hopefully report back to you, letting you know how it goes.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can't remove /en Polylang adds to homepage URL’ is closed to new replies.