configuration for sub-directory

Popular automatic website translation tool

configuration for sub-directory

Postby pbianco » Sat Jun 25, 2016 9:40 pm

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
pbianco
 
Posts: 6
Joined: Sat Jun 25, 2016 7:25 pm

Re: configuration for sub-directory

Postby Yana » Sun Jun 26, 2016 1:18 am

Hi,

Here are the rules for sub-directory structure
Code: Select all
# 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.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: configuration for sub-directory

Postby pbianco » Sat Jul 02, 2016 2:13 am

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
pbianco
 
Posts: 6
Joined: Sat Jun 25, 2016 7:25 pm

Re: configuration for sub-directory

Postby Yana » Sat Jul 02, 2016 9:55 pm

Hi,
You can send access info by email [email protected] or you can create a ticket .
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: configuration for sub-directory

Postby pbianco » Mon Jul 04, 2016 2:28 am

Hi,
I have sent access info by email.
Thanks and regards
pbianco
 
Posts: 6
Joined: Sat Jun 25, 2016 7:25 pm

Re: configuration for sub-directory

Postby Yana » Mon Jul 04, 2016 11:02 pm

Thank you. I'll check the settings ASAP.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: configuration for sub-directory

Postby pbianco » Tue Jul 05, 2016 11:47 am

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!!!!
pbianco
 
Posts: 6
Joined: Sat Jun 25, 2016 7:25 pm

Re: configuration for sub-directory

Postby Yana » Wed Jul 06, 2016 4:19 pm

Hi,
The issue is fixed. We have configured www redirection on our side.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests