Setting the language variable based on Client - htaccess
by Rekha[ Edit ] 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]