configuration for sub-directory
Jun 25, 2016 5:40 pm by pbianco
Jun 25, 2016 5:40 pm by pbianco
Hi,
I am trying to setup GTranslate with the sub-directory structure, but I cannot have it working,
I have added the gtranslate folder, changed the config.php file, added the suggested rows at the beginning of .htaccess and inserted the commands for redirection.
But when I select the translation nothing happens, the page in the original language is still present.
If I disable the sub-directory structure in the module configuration, the translated page is correctly displayed.
Can you, please, help me on this?
Thanks and regards
Re: configuration for sub-directory
Jun 25, 2016 9:18 pm by Yana
Jun 25, 2016 9:18 pm by Yana
Hi,
Here are the rules for sub-directory structure
# gtranslate config
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /$1/$3 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /gtranslate/gtranslate.php?glang=$1&gurl=$2 [L,QSA]
RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)$ /$1/ [R=301,L]
I can see that you are redirecting sub-directory URLs to the sub-domain.Please check your .htaccess file.
If you can send me access info I'll check the settings.
Re: configuration for sub-directory
Jul 1, 2016 10:13 pm by pbianco
Jul 1, 2016 10:13 pm by pbianco
Hi,
I have checked again the .htaccess file, it contains these redirections.
Please let me know how to give you access to check everything.
Thanks and regards
Re: configuration for sub-directory
Jul 2, 2016 5:55 pm by Yana
Jul 2, 2016 5:55 pm by Yana
Hi,
You can send access info by email [email protected] or you can create a ticket .
Re: configuration for sub-directory
Jul 3, 2016 10:28 pm by pbianco
Jul 3, 2016 10:28 pm by pbianco
Hi,
I have sent access info by email.
Thanks and regards
Re: configuration for sub-directory
Jul 4, 2016 7:02 pm by Yana
Jul 4, 2016 7:02 pm by Yana
Thank you. I'll check the settings ASAP.
Re: configuration for sub-directory
Jul 5, 2016 7:47 am by pbianco
Jul 5, 2016 7:47 am by pbianco
Hi,
I have found the problem.
There was a plugin, redirectwww, which disabled the use of the redirection to Gtranslate site.
Now it seems working!!!!
Re: configuration for sub-directory
Jul 6, 2016 12:19 pm by Yana
Jul 6, 2016 12:19 pm by Yana
Hi,
The issue is fixed. We have configured www redirection on our side.
SIMILAR TOPICS
sub-directory issues | May 25, 2017 2:08 am | Replies: 5 | Post by: omgtimko |
Joomla Problem sub-directory | Apr 27, 2017 10:41 am | Replies: 1 | Post by: emre_0119 |
Blank page with sub-directory URLs | Feb 25, 2017 4:38 pm | Replies: 1 | Post by: blim |
Sub Directory Linking Issue | Jan 6, 2017 9:00 pm | Replies: 5 | Post by: Hitesh |
problem with sub domain and sub directory structure | Dec 8, 2016 9:20 am | Replies: 3 | Post by: dceldran |