I wanted to redirect users to the main page of the website according to his/her browser default language setting.
This setting is sent by the browser at every request to the server as ‘Accept-Language’ header and can look like this “pl,en-us;q=0.7,en;q=0.3″. You can check it with Live HTTP Headers Add-on for Firefox and read more about [...]