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.
Defined tags for this entry: , ,

Comments

Display comments as (Linear | Threaded)
  1. 1

    Martin: Ginge nicht auch index.pl.html ohne Änderung?

  2. 1.1

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

Add Comment


Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
BBCode format allowed
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





 

 

das Ç - logo von Alp Uçkan