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

Popular automatic website translation tool

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

Postby [email protected] » Tue Jun 28, 2011 5:42 pm

Hi,
I think I did all the steps of the instructions, one by one to installa GTRANSLATE PRO. But the translation doesn't work. No changes at all when somebody click to flags or languages.

Let me know your opinion.

http://webvai.com

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

Re: GTranslate Pro in WordPress site doesn't work

Postby [email protected] » Tue Jun 28, 2011 6:46 pm

From one hour ago my situation is: When I select a language I'm being redirected to a URL with the language code, but it gives 404 not found error.

I have confirmed with my hosting that the Rewrite mode works.

More ideas?

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

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 1 guest

2GLux
cron