Nginx + GTPro

Popular automatic website translation tool

Nginx + GTPro

Postby 1m5FDMR2D4al » Sun Sep 18, 2011 1:20 pm

There is Nginx rewrite config for GTranslatePro
Code: Select all
rewrite ^/([a-z][a-z])/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 last;
rewrite ^/([a-z][a-z])$ /gtranslate/translate.php?lang=$1 last;
rewrite ^/(zh-CN)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 last;
rewrite ^/(zh-CN)$ /gtranslate/translate.php?lang=$1 last;
rewrite ^/(zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 last;
rewrite ^/(zh-TW)$ /gtranslate/translate.php?lang=$1 last;

Originally there was a problem but it was solved with complete script reinstall.
Last edited by 1m5FDMR2D4al on Sun Sep 18, 2011 2:13 pm, edited 1 time in total.
1m5FDMR2D4al
 
Posts: 15
Joined: Sun Sep 18, 2011 12:57 pm

Re: Nginx + GTPro

Postby Edvard » Mon Sep 19, 2011 2:23 pm

Thanks!
Regards,

Edvard Ananyan - 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
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux