SaaS CMS has officially launched! Learn more now.

Site with many languages => language detection and redirect to correct site


Hi guys,

quick question. 

I have a site with 32 languages/countries like so.


Now we want to implement language detection. So if a user goes to we want to redirect him to the correct language/country.

What would be the best approach to go about doing this?

I have no experience with this. Do we do this by IP or CultureCode ?

Kind regards,


Edited, Sep 10, 2018 15:16

Episerver uses MaxMind under the covers for GeoLocation persolalisation. There's a GeoLocation provider as documented in this blog which will get the correct country based upon the IP. I would add confgiruation in your site to assign languages to countries or uses some partial matching with the country codes such as

var cultureInfos = CultureInfo.GetCultures(CultureTypes.AllCultures)
                              .Where(c => c.Name.EndsWith("-CH"));

To get out the correct culture which you can then use with the UrlResolver to get the correct language URL.

Edited, Sep 10, 2018 16:38

Thanks for the info scott... I will dive into this and report back. 

Sep 11, 2018 16:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.