Hey,
if (substr($lang_variable, 0, 2) == "en") {
header ("Location:./en/");
exit;
}else {
header ("Location:./de/");
exit;
}
dieser Algorithmus zur Content-Negotiation ist unvollständig. Ein typischer Fall - Nutzer bevorzugt deutsch mit englisch als Fallback - liefert das falsche.
Wie's richtig geht, steht in http://httpd.apache.org/docs/2.2/content-negotiation.html#methods sowie der HTTP/1.1-Spec.
--
水-金-地-火-木-土-天-海-冥
水-金-地-火-木-土-天-海-冥