I know that I can redirect visitors to a website by looking at their browser's preferred language setting, thus:
RewriteCond %{HTTP:Accept-Language} de [NC]
Now the question I have is, how do I know that the person having set up that browser does not only speak German, but actually prefers it? I.e. how do I know that someone who has set his browser to prefer English and French over all other language versions of a website prefers English over French?
Is there a fixed order to the language codes in the Accept-Language-header (or wherever it is sent)? What does this header look like?
I remember seeing things like "en=0.8,fr=0.2" or some such thing. Also I remember code like:
RewriteCond %{HTTP:Accept-Language} ^en [NC]
checking if "en" is the first language in the list.
How does this actually look like, and is there a resource (like the Apache docs) that explains this extensively?
Thank you for your help.
Ah, and P.S.: I do understand the problems with this method of redirection (the Frenchman in China using an internet cafe with browsers sending a preference of Chinese), so there is no need to lecture me on the fuzziness of this technique ;-)