Setting the language variable based on Client - htaccess

by Rekha 2010-02-17 13:46:24

Setting the language variable based on Client - htaccess
For sites using multiviews or with multiple language capabilities, it is nice to be able to send the correct language automatically based on the clients preferred language.


RewriteCond %{HTTP:Accept-Language} ^.*(de|es|fr|it|ja|ru|en).*$ [NC]
RewriteRule ^(.*)$ - [env=prefer-language:%1]

Tagged in:

1282
like
0
dislike
0
mail
flag

You must LOGIN to add comments