by bonobo34 » Wed Jul 01, 2015 5:58 pm
Hi Yana,
I'm still struggling... but the translation does not translate, no more 404 since I've placed a .htaccess at the root of my WS.
Vicki, the htaccess.txt file is at the root of any joomla website. You should find out and follow :
3. Add this lines AFTER (next to) RewriteEngine On line in the .htaccess file. Make sure the file name is .htaccess not htaccess or htaccess.txt. If you don't have .htaccess create one manually or rename htaccess.txt to .htaccess.
# 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]
Sincerly Yours,