I have my site in two languages i.e. English and French, I want that whenever a user visits the site, it must be displayed in the browser's default language. How to do it ?
You could do it something like this:
check the browser language against the site current language
if it matches, nothing happens, if not, create a redirect to mysite.com/fr/ or however you have it setup to differentiate the languages