htaccess Configuration
Feb 17, 2015 8:31 am by trovaweb
Feb 17, 2015 8:31 am by trovaweb
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?
Re: htaccess Configuration
Feb 17, 2015 10:09 am by Yana
Feb 17, 2015 10:09 am by Yana
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.
Re: htaccess Configuration
Feb 17, 2015 10:36 am by trovaweb
Feb 17, 2015 10:36 am by trovaweb
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/
Re: htaccess Configuration
Feb 18, 2015 2:05 pm by Yana
Feb 18, 2015 2:05 pm by Yana
Hi,
Which version of GTranslate free module you installed?
SIMILAR TOPICS
Potential threat identified in .htaccess | Mar 1, 2017 7:30 pm | Replies: 3 | Post by: Hannah |
Redirect to subdomain in .htaccess using Accept-language | Dec 27, 2016 5:44 am | Replies: 5 | Post by: freebouba |
htaccess (301 redirects) Cache | Sep 19, 2016 9:36 am | Replies: 3 | Post by: belgor |
configuration for sub-directory | Jun 25, 2016 5:40 pm | Replies: 7 | Post by: pbianco |
Need updated htaccess rules for Windows IIS web.config | May 24, 2016 2:03 pm | Replies: 5 | Post by: mjbradley85 |