Gtranslate Pro - issues with .htaccess

Popular automatic website translation tool

Gtranslate Pro - issues with .htaccess

Postby market_architect » Tue May 10, 2011 2:40 pm

I am having issues with the .htaccess
Last edited by market_architect on Tue May 17, 2011 5:36 pm, edited 2 times in total.
market_architect
 
Posts: 24
Joined: Fri May 06, 2011 9:27 am

Re: Gtranslate Pro - issues with .htaccess

Postby Edvard » Tue May 10, 2011 8:55 pm

Hi,

Please add the rules in the .htaccess and let me know, so I can test and see what can be done.
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Gtranslate Pro - issues with .htaccess

Postby market_architect » Wed May 11, 2011 10:01 am

I have uploaded the following .htaccess :
Last edited by market_architect on Tue May 17, 2011 5:37 pm, edited 1 time in total.
market_architect
 
Posts: 24
Joined: Fri May 06, 2011 9:27 am

Re: Gtranslate Pro - issues with .htaccess

Postby Edvard » Wed May 11, 2011 3:56 pm

I can see the Spanish is OK now: http://www.architectsap.com/es/

I can see that the background image when I hover the top menu items works...

For now you just need to add the language selector to your website.
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Gtranslate Pro - issues with .htaccess

Postby Edvard » Wed May 11, 2011 6:44 pm

You need to use this rewrite rules instead to avoid translation of 2 letter js folder:

Code: Select all
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} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteCond %{REQUEST_URI} !^/js
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Gtranslate Pro - issues with .htaccess

Postby market_architect » Wed May 11, 2011 7:05 pm

Issue is resolved. Thanks Edvard!
market_architect
 
Posts: 24
Joined: Fri May 06, 2011 9:27 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron