• I have wordpress and laravel combined site. https://rentacarclub.co. When I try to browse https://rentacarclub.co/en, it redirects me to https://rentacarclub.co/th. I have page setup for both languages. In setting reading, I have English version setup as static front page.

    The language is translated from laravel controller. I setup cookie once the laravel change language function is fired and in wordpress function.php, I check if the cookie language is different to the pll_current_language(), I redirect to changed language page in wordpress with the help of
    add_action( ‘wp’, ‘redirect_to_current_language’ ); Everything works except for home page. It always redirects to thai language home page no matter what.

    Any solution to this please? What might be the cause?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same problem here.. please help!

    Thread Starter espradeeparyal

    (@espradeeparyal)

    I solved it. The Yoast SEO plugin was redirecting my english page to thai page. May be the admin user added it to the redirection list. I removed that redirection and it worked.

    You can checkout if you have any redirection plugin installed. Or, disable all plugin check the result.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Home page in english language is redirected to thai language’ is closed to new replies.