The default behavior in Litium when a user enters the root website (e.g. www.mysite.com/ ) is to redirect the user to the default web site in Litium (e.g. an English version of the site: www.mysite.com/en/ )
If I want to control this behavior, say by looking at IP address and redirecting to a specific language version based on this, how do I do that?
Do I need to add a new web application that lives in the root and handles the redirection?
Litium version: 6.2
You need to setup a new website that will listen on the root domain name (and also set that website as default). Then in the startpage of that site you will use a template where you have coded your geo-location check to see where you should forward the user.
On second thought… Would it not be nice if there was a possibility to override the default “redirect to default web site” logic in Litium?
Yes, that is a good feature. I will take a note about that one.