Hey there,

What is the best way to redirect to locales by domains?

my-domain.com -> /

my-domain.fr -> /fr

and so on...

In .htaccess (host on Apache) or in index.php? How to achieve this? (I'm a JS dev, not PHP...)

Then, I would like to let the user select the locale by himself (select menu with locales). Set a "locale" cookie?

Thanks for any help or suggestion