Redirect rule based on accept language
Hi,
I am trying to redirect the home page of a website based on the browser language of the user. For doing this, I have put in the following rule which is not working.-
#Redirect for Portuguese language based on HTTP header
RewriteCond %{HTTP:Accept-Language} pt [NC]
RewriteCond %{HTTP_HOST} xxx.lat [NC]
RewriteRule ^(.*)$ https://www.xxx.lat/pt$1 [R=301,L]
Is there any issue with the way the accept language header is used? Can anyone please point out the issue here?

