Elxis CMS Forum
Support => Language => Topic started by: Progenic on February 01, 2014, 19:26:22
-
Hello.
I've installed Elxis CMS on a domain (example.com). I also parked a domain (example.fr) on that host.
The question is:
Is it possible to redirect the website to .fr domain if a user switch to french language ? Actually, will be the same website, but it will not be redirected by example.com/fr/ but example.fr, something like languages on subdomains.
Thanks in advance.
-
Elxis needs a unique site url. Even if you do this redirection the links will still be generated as example.com/fr/. So on each click you will have redirections which is not good. You also need to modify library elxisURI to change that and also need to set automatically language to fr when you have a request to example.fr.
What I suggest you to do is to put a redirection from example.fr to example.com/fr/ or even better, from example.fr/anything to example.com/fr/anything
-
Thank you for your reply.
I also thought about using a cname for the domain, for example site.fr to be the CNAME of site.com/fr
I hope it will work with this.
Thanks again!