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

    (@chouby)

    On your site, the homepage is redirected to http://deadbird.fr/index.php which Polylang does not expect.

    Could you edit polylang/include/core.php, line 247 and replace:

    if (empty($query->query) && home_url('/') == trailingslashit((is_ssl() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) {

    by:

    if (empty($query->query) && home_url('/') == trailingslashit((is_ssl() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].str_replace(array('index.php', '?'.$_SERVER['QUERY_STRING']), array('', ''), $_SERVER['REQUEST_URI']))) {

    and tell me if it solves your problem ?

    Thread Starter deadbird

    (@deadbird)

    It works perfectly, check my website if needed!

    Thanks a lot, my website and your awesome plugin now fit perfectly!

    Plugin Author Chouby

    (@chouby)

    Great. I will include this in 0.8.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Polylang] Home page language?’ is closed to new replies.