You can use sub-domain URL structure (http://es.example.com) or sub-directory URL structure (http://example.com/fr/) with your subscription. If you have Enterprise subscription and want to host your language on a top level country domain name (http://example.fr), please contact us.
Note: For Shopify shops you can only use sub-domain URL structure.
WordPress: If you are using WordPress install GTranslate plugin and turn on "Sub-directory URL structure" option from GTranslate Settings page. Go to step 3.
You will need to have PHP and Apache on your server to use this option. If you have other than Apache web-server, please contact us.
# gtranslate config RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /$1/$3 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$ /gtranslate/gtranslate.php?glang=$1&gurl=$2 [L,QSA] RewriteRule ^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)$ /$1/ [R=301,L]
To have sub-domain URLs you just need to add DNS CNAME records for each language. You will receive the list of CNAME records in the instructions email after you complete your order. After they are added your translations will be live in a couple of minutes. Go to step 2.
Download and add our GTranslate Free language selector to your website and use Sub-Domain or Sub-Directory URL structure option depending on your choice.
If you have URL Translation feature available in your subscription and would like to turn it on, please follow Enable URL Translation instructions.
If you are using sub-domain URL structure and you have SSL on your website, let us know, so we can generate Let's Encrypt certificate for you or send us your wildcard SSL certificate and RSA private key files to be installed on our servers.
Note: Do not do both sub-directory and sub-domain configurations at the same time.
If you are having any issues, we can make the configuration for you, please contact us.
WordPress: Turn on "URL Translation" option from GTranslate plugin Settings page.
Shopify: Turn on "URL Translation" option from GTranslate app Settings page.
Joomla, Drupal and Other platforms:
To enable URL translation feature for your website you need to add the following code into the head tag of your pages.
<meta name="uri-translation" content="on" />
Make sure it is on top of other tags inside head tag.
In order to edit the translations you need to go to the language you want to edit and then add ?language_edit=1 to the URL. If you already have ? in the URL you need to add &language_edit=1 to the URL. For example to edit a text on home page in Spanish language you need to go to http://es.example.com/?language_edit=1 | http://example.com/es/?language_edit=1 which will open the edit interface.
You will be able to visually see the difference of already edited texts and automatically translated texts in edit mode. The texts with the red pencil icons are edited texts. Automatically translated texts are with the green pencil icons.
With the arrow icon you can edit the translated URLs.