Forum Archive - auto change lang

auto change lang
Feb 21, 2011 2:35 am by ami9620
hi i have a site and it has some domains such as com or de etc... and all of them go to com i want to make each domain to translate my site (mydomain.com) and show it in a specific lang for example if yo go to mydomain.de it will be like i get into mydomian.com and press on de flag is there a way to do that?
Re: auto change lang
Feb 21, 2011 10:02 am by Edvard
Yes it is possible with Apache mod_rewrite. You need to write appropriate rewrite rules in your .htaccess file.
Re: auto change lang
Feb 21, 2011 10:58 am by ami9620
can u write me the code i need to put in the htaccess?
Re: auto change lang
Feb 21, 2011 6:24 pm by Edvard
Probably this is what you need. RewriteCond %{HTTP_HOST} ^www.yourdomain.de$ [OR] RewriteCond %{HTTP_HOST} ^yourdomain.de$ RewriteRule .* http://yourdomain.com/de/ [R=301,L]

SIMILAR TOPICS

Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb
Change the color of the Language Switcher can i do that?Sep 18, 2018 1:58 pmReplies: 3Post by: rohitlopes
Change Link ColorSep 11, 2018 7:10 pmReplies: 3Post by: onechance
Change ip adressFeb 8, 2018 12:58 pmReplies: 1Post by: serdmitriy
Change language using a URL parameter: site.com?lang=DEJan 4, 2018 4:16 pmReplies: 4Post by: jivan

Try GTranslate with a free 15 day trial