• Hi all, I have had a hard time trying to fix this Polylang behaviour.

    I would like to use a directory for each language except the main language (English) and a multilingual home page at the root of the site. For now, I have not found any solution, but have tried the following:

    I removed the 302 redirection that polylang has on line 264 in the wp-content > plugins > polylang > frontend > choose-lang.php by removing the following lines

    $redirect = apply_filters( ‘pll_redirect_home’, $redirect );
    if ( $redirect && wp_validate_redirect( $redirect ) ) {
    $this->maybe_setcookie();
    header( ‘Vary: Accept-Language’ );
    wp_safe_redirect( $redirect, 302, POLYLANG );
    exit;

    This worked very well, and I had then access to the regular home page of the site. I was 50% done.

    Now I have the same content on https://www.daddicted.com/ and on the /en/ home page. Which causes duplicate content. No problem with other languages such as https://www.daddicted.com/fr/

    My goal was to create 2 pages : one for the / home page, and another one for the /en/ home page, but I have not found anyway to do this since the same page is automatically used for the main hp on / and the main language hp, and that’s the page you choose in settings > reading > your homepage displays > a static page + url

    Has anyone managed to set up a proper and SEO friendly multi lingual homepage using polylang before?
    Thanks for your help!

    The page I need help with: [log in to see the link]

The topic ‘SEO friendly multi lingual homepage using polylang’ is closed to new replies.