auto change lang

Popular automatic website translation tool

auto change lang

Postby ami9620 » Mon Feb 21, 2011 6:35 am

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?
ami9620
 
Posts: 2
Joined: Mon Feb 21, 2011 6:31 am

Re: auto change lang

Postby Edvard » Mon Feb 21, 2011 2:02 pm

Yes it is possible with Apache mod_rewrite. You need to write appropriate rewrite rules in your .htaccess file.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: auto change lang

Postby ami9620 » Mon Feb 21, 2011 2:58 pm

can u write me the code i need to put in the htaccess?
ami9620
 
Posts: 2
Joined: Mon Feb 21, 2011 6:31 am

Re: auto change lang

Postby Edvard » Mon Feb 21, 2011 10:24 pm

Probably this is what you need.
Code: Select all
RewriteCond %{HTTP_HOST} ^www.yourdomain.de$ [OR]
RewriteCond %{HTTP_HOST} ^yourdomain.de$
RewriteRule .* http://yourdomain.com/de/ [R=301,L]
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron