[Solved] GTranslate Pro in WordPress site doesn't work

Popular automatic website translation tool


Re: GTranslate Pro in WordPress site doesn't work

Postby [email protected] » Wed Jun 29, 2011 12:24 pm

Hi Edvard,
I found the problem and now it works.

The order of the lines in .htaccess file was little bit different. The correct order is this one:

***************************
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On

# 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]
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]

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
***************************

Thanks
Jaime Garcia
[email protected]
 
Posts: 3
Joined: Tue Jun 28, 2011 5:34 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux