htaccess Configuration

Popular automatic website translation tool

htaccess Configuration

Postby trovaweb » Tue Feb 17, 2015 12:31 pm

Reading the Documentation of the PRO Version, the example of config of the htaccess is the Chinese with CN and Tw, how can i edit the htaccess for using english?
trovaweb
 
Posts: 31
Joined: Fri Aug 22, 2014 8:56 pm
Location: Messina

Re: htaccess Configuration

Postby Yana » Tue Feb 17, 2015 2:09 pm

Hi,
It is already configured for English. [a-z]{2} means two-letter language code and the English language code is en, so you do not need to configure it.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4140
Joined: Thu Jan 12, 2012 6:21 pm

Re: htaccess Configuration

Postby trovaweb » Tue Feb 17, 2015 2:36 pm

We installed your plugin, corrected some errors and it works perfectly. After changing language, when i choose a menu voice it redirect me to home page.

# gtranslate config
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]

These are the lines of code of the htaccess for chinese language, what i have to edit for using english language?
This is the site: http://bellavistaristorante.info/
trovaweb
 
Posts: 31
Joined: Fri Aug 22, 2014 8:56 pm
Location: Messina

Re: htaccess Configuration

Postby Yana » Wed Feb 18, 2015 6:05 pm

Hi,
Which version of GTranslate free module you installed?
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4140
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron