New Enterprise Setup - HTTPS and Wordpress HTaccess rules.

Popular automatic website translation tool

New Enterprise Setup - HTTPS and Wordpress HTaccess rules.

Postby chint » Sat Mar 09, 2013 4:32 pm


I just brought the enteprise edition of Gtranslate yesterday. Currently, to test I have pointed domains ja, hi and af, as sub domains to your server but doesnt seem to be working. The CNAME is also updated. The problem I think is redirection and lack of a plugin. I have to redirect all traffic to HTTPS and not use port 80. Also I have a HTTPS plugin to ensure compatibility. In the .htaccess file there a lots of rules in there for security. Also I do not have an Gtranslate plugin on the website can you send me the enterprise edition? Please see current .htaccess rules.

Code: Select all
#forcing all port 80 requests to be 443
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

# directory browsing
Options All -Indexes

# Redirect old file path to new file path hides wp-login page
Redirect /wp-login.php

# protect from sql injection
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

#Protect .htaccess
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all

#Blocking config file access
<Files wp-config.php>
Order Allow,Deny
Deny from all

# Block the include-only files.
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L]

#allows files uploaded upto 5mb
php_value upload_max_filesize 5M
Posts: 1
Joined: Sat Mar 09, 2013 4:20 pm

Re: New Enterprise Setup - HTTPS and Wordpress HTaccess rule

Postby Yana » Sun Mar 10, 2013 12:45 am

For Enterprise version you just need to create CNAME records to point to our server. It should work with HTTPS but you will get warnings. You can buy SSL wildcard certificate and we will install it on our server.
Also you will need to remove www redirection for our network requests. You should remove www and add the following lines to your .htaccess file

RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$1 [R=301,L]

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