auto change lang
Feb 21, 2011 2:35 am by ami9620
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
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
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
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 automatically | Nov 26, 2018 9:29 pm | Replies: 3 | Post by: Antilb |
Change the color of the Language Switcher can i do that? | Sep 18, 2018 1:58 pm | Replies: 3 | Post by: rohitlopes |
Change Link Color | Sep 11, 2018 7:10 pm | Replies: 3 | Post by: onechance |
Change ip adress | Feb 8, 2018 12:58 pm | Replies: 1 | Post by: serdmitriy |
Change language using a URL parameter: site.com?lang=DE | Jan 4, 2018 4:16 pm | Replies: 4 | Post by: jivan |