Forum Archive - [Solved] Pro version doesn't work and urls wrong

[Solved] Pro version doesn't work and urls wrong
Jul 4, 2011 7:57 pm by derekK
Hi, bought the pro version today. Installed on the server and followed all your instructions. The problem is that when I turn the free version (which works fine on the fly btw) to Pro and redirect, the urls generated are the wrong way round! As far as I can see it should read domain/blog/lang but when i have installed per your instructions in the root, it reads domain/lang/blog and there is no content (not surprisingly). I have been through troubleshooting and api code is correct etc. Does this actually work? So many people seem to be having a problem. Like most blogs appended to 'proper' websites the blog is located at domain/blog/ . Is that the problem? Thanks
Re: Pro version doesn't work and urls wrong
Jul 5, 2011 3:08 pm by derekK
Is it possible to get the pro version to work so that it affects only the wordpress blog directory? i.e domain/blog/language It must not affect domain/x where x is any other directory. (domain/language/x) At present it will affect the whole site due to the changes you require made to the .htaccess file. This rewrites other directories outside of the blog with professionally translated material on and stops it working. If this is not possible could we get a refund as this is not any use to us? No mention of changes to site wide .htaccess file was made prior to purchase. Perhaps you should make this clear to buyers in future or ,if it is possible, provide a help file which allows for people who have a website with a blog as a subdirectory. I saw another post from a person with the same problem but you just told him to install in the root. Thank you
Re: Pro version doesn't work and urls wrong
Jul 5, 2011 9:53 pm by derekK
Edvard, This is largely solved. I realised that we had a number of directories which had 2 letters like /js and of course these were being overwritten by the standard .htaccess. I fixed this with a RewriteCond statement for all the affected directories and it all seems to be working now. Thanks
Re: Pro version doesn't work and urls wrong
Jul 7, 2011 10:45 am by Edvard
Good to hear that and sorry for my late response.
Re: [Solved] Pro version doesn't work and urls wrong
Jul 7, 2011 2:26 pm by derekK
Hi Edvard, No problem, I learned a bit about mod_rewrite. :) I solved the other problem of stopping the rest of the site adding the language folder prefix by adding another rule removing it from specific root files. i.e. rather than domain/fr/index.php it falls back to domain/index.php. This means the only directory that is affected by the translator is now blog/. :?: I wonder if there is a more elegant solution? Set a rule that includes just the blog directory (or any specific set of directories or files) explicitly rather than removing everything else as I am doing now. I couldn't find the correct syntax to make that work. Thanks Derek Derek
Re: [Solved] Pro version doesn't work and urls wrong
Jul 8, 2011 7:23 pm by Edvard
So you want to translate only blog? If the answer is yes, you can do this: 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)/blog/(.*)$ /gtranslate/translate.php?lang=$1&url=blog/$2 [L,QSA] Or may be use RewriteCond 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_URI} ^(.*)blog(.*)$ RewriteRule ^([a-z]{2}|zh-CN|zh-TW)(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
Re: [Solved] Pro version doesn't work and urls wrong
Jul 8, 2011 11:48 pm by derekK
Hi Edvard, Thanks. That's great. I'll try that in the morning. Much appreciated Derek

SIMILAR TOPICS

GT doesn't work...error 404 pageJan 28, 2019 5:36 pmReplies: 1Post by: vincenzodinuzzo
flag doesn't clickDec 10, 2018 6:52 amReplies: 3Post by: maga
AJAX requests sent to wrong (with language code) URLSep 27, 2018 10:16 amReplies: 3Post by: atriaforever
Any ideas on what I need to configure this to work correctlySep 15, 2018 4:44 pmReplies: 1Post by: milangomes
Translation of url does not workAug 5, 2018 1:40 pmReplies: 1Post by: Wind777

Try GTranslate with a free 15 day trial