I have a website that is offered in 7 languages.
I want to be able to redirect the user based on the browser language only when the user visits the home page. This is intended for ease of use when it comes to organic traffic. I need this redirect to apply only to the main page, since the site also sends mail programs specific to each language, and they will not work if the user is redirected.
Each language is also a subdomain. e.g. www.site.com for English and de.site.com for German. The Mailer URL will look something like this: www.site.com/home/login?query=string
I would like to do this with a .htaccess file, if possible.
Can anyone suggest an understanding?
Thank.
source
share