Apaches Content Negotiation und das Polnisch-Problem

Wenn man eine mehrsprachige Site mittels Apaches Content Negotiation einrichtet und eine der zu bedienenden Sprachen ist Polnisch, dann stößt man mit der Endung index.html.pl (dem Standard-ISO-Code für polnisch) auf das Problem, dass der Webserver dies als Perl-Datei interpretiert und die Auswahl der richtigen index.html auf Polnisch nicht funktioniert. Da gibt es eine einfache Abhilfe. Man benennt die polnische Version der Seite in beispielweise index.html.po um und trägt einfach AddLanguage pl .po in die httpd.conf oder in die .htaccess (wenn man keinen Zugriff auf die Server-Konfiguration hat) ein. Zum Testen eignet sich das Firefox-Add-On Quick Locale Switcher.
Friday, July 20. 2007
Defined tags for this entry: , ,
164 hits

Comments

Display comments as (Linear | Threaded)

1

Martin on 2007-07-20 23:01 (Reply)

Ginge nicht auch index.pl.html ohne Änderung?
1.1

alp on 2007-07-21 00:38 (Reply)

Ja, diese Form ist auch besser, aber ich habe es aus irgendeinem Grund so nicht zum Laufen bekommen (war nicht mein Webserver).

Trackbacks


No Trackbacks

Add Comment

BBCode format allowed
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA


Über

Das hier ist das private Weblog von Alp Uçkan. Ich entwickle Websites seit 1997 und arbeite derzeit als freiberuflicher Frontend-Entwickler.

Specialp Features

fapulous Framework (neu!)
Das erste XHTML/CSS-Framework auf Basis der Faux Absolute Positioning-Technik. Beinhaltet viele performante Konstrukte. Der Stoff, aus dem professionelle Websites gemacht sind ... ;-)

monitorThis 1.0
With MonitorThis you can subscribe to 26 different search engine feeds at the same time.

Business Blogging Weeks
Blog-Serie über die Kommerzialisierung der Blog-Szene in 2005

neueste Leser-Kommentare:

06.02.2011 17:28
Lucky Number Slevin hat sowieso die besten Filmzitate! Hier noch ein paar sehr Gu [...]
21.01.2011 13:26
Ok, I will do this in the next few days, probably two weeks. I have to do some three [...]
21.01.2011 12:52
Dear Mr Binder, a free german translation of this tutorial would be highly apprec [...]