I found your suggestion on this forum to use the following in the htaccess file:
RewriteRule ^[a-z]{2}/signup/signup.php$ /signup/signup.php [QSA]
RewriteRule ^zh-CN/signup/signup.php$ /signup/signup.php [QSA]
RewriteRule ^zh-TW/signup/signup.php$ /signup/signup.php [QSA]
This does not work and the pdf files are still translated.
My site is endless-satsang.com
Specifically, I tried the following in my .htaccess file:
# gtranslate config
RewriteRule ^[a-z]{2}/images/stories/pdfs$ /images/stories/pdfs [QSA]
RewriteRule ^zh-CN/images/stories/pdfs$ /images/stories/pdfs [QSA]
RewriteRule ^zh-TW/images/stories/pdfs$ /images/stories/pdfs [QSA]
RewriteRule ^([a-z]{2})/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2})$ /gtranslate/translate.php?lang=$1 [L,QSA]
RewriteRule ^(zh-CN)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(zh-CN)$ /gtranslate/translate.php?lang=$1 [L,QSA]
RewriteRule ^(zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
I also tried adding /(.*) after all of the "pdfs" and this gives a 404 error, which is actually better than having the program translate the ebooks. But I would prefer to have anyone clicking on a free ebook link on a translated version of the page:
http://endless-satsang.com/free-spiritual-ebooks.htm be directed to the original and untranslated English version of the pdf.
Any suggestion on how to do this?