Massimo Franciosa
Massimo Franciosa

Reputation: 564

Kentico 8 - Redirect to user culture version from a *.com

I've setup a website in kentico to use a unique *.com domain with url prefixes (*.com/fr-fr/, *.com/fr-be/, *.com/nl-be/)

what I'd like to do now is to redirect the user that access the site domain.com to the related culture based on user language, using fr-fr as default.

is it possible to configure kentico to do so or do I need to add custom code?

Upvotes: 0

Views: 287

Answers (2)

DTK
DTK

Reputation: 470

Configuration Kentico for anonymous visitors

You can configure the default content culture that the website displays to anonymous visitors. This can be done separately for the main website domain and for individual domain aliases:

Sites -> edit a site -> General -> Visitor culture - used for visitors accessing the website through a URL containing the main domain name.
Sites -> edit a site -> Domain Aliases -> edit an alias -> Visitor culture - used for visitors accessing the website through a URL that contains the domain alias.

The values can either be set to one of the cultures available for the website, or to (Automatic), in which case the user's browser settings are used (for example, in Internet Explorer, you can set the default language in Tools -> Internet options -> General -> Languages).

More Info: https://docs.kentico.com/display/K9/Setting+default+languages+for+users+and+visitors

Upvotes: 2

Martin Makarsky
Martin Makarsky

Reputation: 2650

If I understand your problem right - go to Sites > edit your site > Domain aliases tab > create desired one > set Redirect URL, and Default alias path for visitor culture. You can find more info here.

Upvotes: 1

Related Questions