Comment #4 on issue 73 by wojciech...@gmail.com: LanguagePriority support
http://code.google.com/p/cherokee/issues/detail?id=73
I solved this problem with simple script in PHP (sorry for the mess in
code, but You get the idea):
<?php
echo '<html><head>';
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($lang == 'pl')
{
echo "<meta http-equiv='refresh' content='0;url=pl/'>";
}
else
{
echo "<meta http-equiv='refresh' content='0;url=en/'>";
}
echo '</head></html>';
?>
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev
http://code.google.com/p/cherokee/issues/detail?id=73
I solved this problem with simple script in PHP (sorry for the mess in
code, but You get the idea):
<?php
echo '<html><head>';
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
if ($lang == 'pl')
{
echo "<meta http-equiv='refresh' content='0;url=pl/'>";
}
else
{
echo "<meta http-equiv='refresh' content='0;url=en/'>";
}
echo '</head></html>';
?>
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev@lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev