Geolocalisation with multisite?

Has anyone managed to implement a geolocalization service with a multisite website?

I’d need to see if I can redirect a user coming a French language browser to redirect to the Thai version of the website because he is doing so from Bangkok?

Right now, he is redorect to the french version of the website, and I’d like to redirect him to the thai version

Hi @chris,

Implementing this as a middleware using a geolocation service should work.

Hi @apinard
yes that looks like the way to go, thanks.

I’ve played around with this on a couple of multisite setups, and it can work, but you usually need to handle it with a bit of custom logic. Browser language will always take priority unless you override it with a geolocation check before the language redirect kicks in.

Isn’t it that this solution will have a big impact on the first load? If only you have a local database you can fetch from.