|
From: | Federico Bruni |
Subject: | Re: weird behaviour of automatic language selection |
Date: | Wed, 20 Apr 2016 16:19:02 +0200 |
Hi allI'm testing the lilypond website on the web root of my local Apache installation. I've noticed that _on the same browser_ I get different languages on my localhost:http://lilypond.org/manuals (italian, correct) - all the other URLs serve correctly italian pageshttp://localhost/manuals (nederland, incorrect) - some other pages are served in english (e.g. download/ and introduction/), but others are served again in nederland (e.g. features/)Strange indeed.Do you have any idea of why it happens? Perhaps I miss some configuration on my Apache installation?Before studying Apache content negotiation, let's see if I can get some help quickly :)
Adding this line to .htaccess fixes the problem: AddLanguage it .it In our .htaccess we have only this line: # fix broken auto language selection for Hungarian AddLanguage hu .huThis makes me guess that on the server all the languages (except hungarian) are defined in another Apache config file. This would explain why lilypond.org is not affected by this bug.
I suggest adding the other languages (besides hungarian) in our .htaccess so we can test the website locally.
[Prev in Thread] | Current Thread | [Next in Thread] |