My site was running GTranslate Pro with no problem before. today, I installed latest ver of Joomfish, then my jomsocial login module always show "Invalid token" error when trying to login. I have done a lot of testing to find out why, and finally found that this is caused by the Gtranslate code in the .htaccess below. when I remove them, everything is ok. why's that? what's wrong? I am running 3 languages: Traditional Chinese (default), Simplified Chinese (auto translated by Gtranslate pro), and English (manually translated with Joomfish)
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]
RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.mysite.com/$1 [L,R]
ErrorDocument 404 /