Home page in english language is redirected to thai language
-
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?
- The topic ‘Home page in english language is redirected to thai language’ is closed to new replies.