I want to use htaccess file to redirect the user to correct site language according to user browser settings.
So instead of german users going and clicking german flag they should get the german language of my site.
I read a little bit and found that I should add something like below to htaccess file but is this correct, will it work also which htaccess file should I add this to?
thx.
Code: Select all
#The 'Accept-Language' header starts with 'de'
#and the test is case-insensitive ([NC])
RewriteCond %{HTTP:Accept-Language} ^de [NC]
#Redirect user to /?op=change_lang&lang=german address
#sending 301 (Moved Permanently) HTTP status code
RewriteRule ^$ /?op=change_lang&lang=german [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^ru [NC]
RewriteRule ^$ /?op=change_lang&lang=russian [L,R=301]
#For every other language (including English) use English
RewriteRule ^$ /?op=change_lang&lang=english [L,R=301]
also is there really a major advantage to upgrade to 1.6, I see that there are some small problems people having so is it better to wait untill all solved?