Hi, I have bought your PRO plugin and now having difficulties in making it working.
Server requirements are satisfied 100%, I have checked with my hosting provider support.
I have uploaded the gtranslate folder to my www root (public_html), consider the site I want to transalte is into a subdirectory like this public_html/portofaro and it is called by the URL
http://www.cuoremediterraneo.comI have set public_html/gtranslate/cache and public_html/gtranslate/cache/XX folders permissions to 777, without change to other files/folders permissions.
I have added this:
# 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]
to my .htaccess file located public_html/.htaccess and this is its content:
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]
RewriteCond %{HTTP_REFERER} !^http://marcoghirlanda.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://marcoghirlanda.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.marcoghirlanda.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.marcoghirlanda.com$ [NC]
#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
#Make PHP.INI recursive
SetEnv PHPRC /home/marcghi7/public_html/php.ini
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.marcoghirlanda\.com\/eyes" [R=301,L]
RewriteCond %{HTTP_HOST} ^marcoghirlanda\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.marcoghirlanda\.com$
RewriteRule ^/?$ "http\:\/\/www\.marcoghirlanda\.com\/eyes" [R=301,L]
I have opened /gtranslate/config.php file to configure it and this is its content:
<?php
define('MAIN_LANG', 'it'); // Main language code: en, ar, bg, hr, cn, ct, cs, da, et, tl, fi, fr, gl, el, iw, hi, es, nl, id, ja, ca, ko, lt, lv, mt, de, no, pt, ru, ro, sr, sk, sl, sv, th, tr, uk, hu, vi, it, pl, sq
define('API_KEY', 'AIzaSyDTnisYrRIiRHbdbxrjIfk6BiMyXXXXXXX'); // You can get your Google Translate API key from
https://code.google.com/apis/console/?api=translatedefine('AUTO_DETECT_LANG', false); // set to true if you have mixed language content, works with Google only
define('CACHE_TIME', 365*24*60*60); // 1 year by default, no need to decrease
define('LICENSE', 'license.dat');
define('SSL_VERIFY_PEER', true); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue
define('FOLLOW_LOCATION', false); // if your site have redirects for some URLs and for that reason you see blank pages, you need to enable this feature
define('USE_BING_TRANSLATOR', false); // Enable it to use Bing Translotor instead of Google Translate
define('BING_API_KEY', 'INSERT-YOUR-KEY'); // If the option above is enabled you need to get your Bing API key from
http://www.bing.com/developers/createapp.aspx (PHP SOAP client is required)
define('DEBUG', false); // turn on for debug mode
// username and password to edit translations, please change for security reasons,
// this is not your google login/pass, you need to think something new
define('USER', 'cuoremediterraneo');
define('PASS', 'mypwdnotwritehere');
I have modified public_html/robots.txt and added
Sitemap:
http://cuoremediterraneo.com/sitemap.txtand put a sitemap.txt both in public_html/sitemap.txt and in public_html/portofaro/sitemap.txt with this content:
http://cuoremediterraneo.com/en/http://cuoremediterraneo.com/af/http://cuoremediterraneo.com/sq/http://cuoremediterraneo.com/ar/http://cuoremediterraneo.com/hy/http://cuoremediterraneo.com/az/http://cuoremediterraneo.com/eu/http://cuoremediterraneo.com/be/http://cuoremediterraneo.com/bg/http://cuoremediterraneo.com/ca/http://cuoremediterraneo.com/zh-CN/http://cuoremediterraneo.com/zh-TW/http://cuoremediterraneo.com/hr/http://cuoremediterraneo.com/cs/http://cuoremediterraneo.com/da/http://cuoremediterraneo.com/nl/http://cuoremediterraneo.com/et/http://cuoremediterraneo.com/tl/http://cuoremediterraneo.com/fi/http://cuoremediterraneo.com/fr/http://cuoremediterraneo.com/gl/http://cuoremediterraneo.com/ka/http://cuoremediterraneo.com/de/http://cuoremediterraneo.com/el/http://cuoremediterraneo.com/ht/http://cuoremediterraneo.com/iw/http://cuoremediterraneo.com/hi/http://cuoremediterraneo.com/hu/http://cuoremediterraneo.com/is/http://cuoremediterraneo.com/id/http://cuoremediterraneo.com/ga/http://cuoremediterraneo.com/it/http://cuoremediterraneo.com/ja/http://cuoremediterraneo.com/ko/http://cuoremediterraneo.com/lv/http://cuoremediterraneo.com/lt/http://cuoremediterraneo.com/mk/http://cuoremediterraneo.com/ms/http://cuoremediterraneo.com/mt/http://cuoremediterraneo.com/no/http://cuoremediterraneo.com/fa/http://cuoremediterraneo.com/pl/http://cuoremediterraneo.com/pt/http://cuoremediterraneo.com/ro/http://cuoremediterraneo.com/ru/http://cuoremediterraneo.com/sr/http://cuoremediterraneo.com/sk/http://cuoremediterraneo.com/sl/http://cuoremediterraneo.com/es/http://cuoremediterraneo.com/sw/http://cuoremediterraneo.com/sv/http://cuoremediterraneo.com/th/http://cuoremediterraneo.com/tr/http://cuoremediterraneo.com/uk/http://cuoremediterraneo.com/ur/http://cuoremediterraneo.com/vi/http://cuoremediterraneo.com/cy/http://cuoremediterraneo.com/yi/I have enabled the PRO version in the plugin page in wordpress but now whatever language I click on it just gives a Page Not Found (Error 404), not putting the right language. This even adding ?language_edit=1 at the end.
You can check this on
http://www.cuoremediterraneo.comThanks in advance for your help,
Marco