I have a Joomla! 3.9 website which I can reach writing its URL in the web explorer. I can watch the website from there. But, if I try to access the website from Google, I get an ERR_TOO_MANY_REDIRECTS error.
After some research, I discovered that the problem is the Language Filter plugin. Inside the configuration of this plugin, I can turn on the option for hiding the URL of the language, and my website loads properly. But this solution is not valid for me, as there is some custom PHP code that checks the URL for getting the actual language.
Is there an alternative solution?