i have a multilingual site with 3 languages and i\'m using the following rules to redirect requests to the right version of the website based in browser accept language.
$1 should do the trick.
RewriteCond %{HTTP:Accept-Language} ^no.*$ [NC] RewriteCond %{REQUEST_URI} ^/$ [NC] RewriteCond %{QUERY_STRING} !(^q\=) [NC] RewriteRule ^(.*)$ /nb/$1 [L,R=301]