We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Sub-domains, url rewriting and double name domain site


gwengoat
05-07-2014, 19:07
Hi guys,
I'm going to start a new project in few days but I want to be sure of something before to start. I have a kimsufi dedicated server and want to set up a bilingual site. It's not my first bilingual site but I want to try a new way which is to buy 2 name domains, one in english and one in french, so, homepage would be :

PHP Code:
index.php?lang=fr   ->   http://frenchnamedomain.com
index.php?lang=en   ->   http://englishnamedomain.com 
The second part would include as well sub-domains, so first, I would like to know if I can set up in Manager v3 only one sub-domain (lets name it zone for example) that I can rename according to the country requested using URL rewriting for instance? I have in mind something like that :

PHP Code:
index.php?lang=fr&country=fr   ->   http://fr.frenchnamedomain.com
index.php?lang=fr&country=be   ->   http://be.frenchnamedomain.com
index.php?lang=en&country=uk   ->   http://uk.englishnamedomain.com
index.php?lang=en&country=us   ->   http://us.englishnamedomain.com 
and so on.

Am I dreaming or is that possible to do?! To me, it would mean using only one database and only one back office, which makes thing easier in fact…

If somebody as done something like this before or know how to do it, I'll be grateful

Thanks in advance,
Chris