Dispatcher redirect rule | Multiple languages in header
Hi Folks,
I need to define redirect rule to handle where one set of languages to redirect to site.com/en.html while other set of languages to redirect to site.com/fr.html
for example cn, de, fr to redirect site.com/en.html
while
it, ja, zh to redirect site.com/fr.html.
How can I define such rule?
Is it possible like?
RewriteCond %{HTTP:Accept-Language} cn,de,fr [NC]
RewriteCond %{HTTP_HOST} site.com/en [NC]
RewriteCond %{HTTP:Accept-Language} it,ja,zh[NC]
RewriteCond %{HTTP_HOST} site.com/fr[NC]
Any help is highly appreciated.
Thanks,
Pradeep