Server Installation - page isn't redirecting properly

Popular automatic website translation tool

Server Installation - page isn't redirecting properly

Postby everaftergraphics » Thu Jul 25, 2013 2:53 am

Hi There,
I'm trying to install the Pro version of GTranslate.
I think I've followed all the installation instructions properly - but every time I change the language I get - "This page isn't re-directing properly" message. I am installing this in a sub directory in the server so that I don't interfere with the old site while I develop.
I've installed the Drupal GTranslate Plugin, I've created the sitemap and placed it in the folder, I've placed the GTranslate folder in the public.html folder on the server, as well, I tried placing a copy of both the gTranslate folder and the sitemap.txt in the /drupal subfolder.
Could it be a problem in the .htaccess RewriteRule?
Posts: 3
Joined: Fri Jul 19, 2013 6:26 am

Re: Server Installation - page isn't redirecting properly

Postby Yana » Fri Jul 26, 2013 1:53 am

Please put gtranslate redirection rule in your .htaccess file after RewriteEngine On
RewriteEngine On
# gtranslate config
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_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]

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
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

  • Related Topics
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest