| GTranslate Enterprise Documentation |
Adding a CNAME recordDNS is the component of the Internet which converts human-readable domain names (such as example.com) into computer-readable IP addresses (such as 192.0.32.10). It does this according to DNS zone files that reside on your server and tie domain names to IP addresses. CNAME record stands for "canonical name record." This record creates an alias, allowing a querying server to continue the DNS lookup under the new name. It may take up to 48 hours to add the record. Usually it takes less than 5 minutes. You can use nslookup command line tool to test if the record has been added. cPanel hosting
Plesk hosting
Other control panelsIf you cannot find the DNS management in your hosting panel, please consult your hosting how to add new DNS record. They should be able to do it for you if there is no place to manage your DNS records in the hosting control panel. Removing non-www to www redirect for our networkRewriteCond %{HTTP:X-GT-Lang} ^$ # requests from our network will have X-GT-Lang header RewriteCond %{HTTP_HOST} ^domain.com RewriteRule (.*) http://www.domain.com/$1 [R=301,L] Enable URL TranslationTo 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"/> Editing TranslationsIn 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. Detecting selected languageYou can find the current selected language code from X-GT-Lang request header. If your site is written in PHP you can find it in _SERVER['HTTP_X_GT_LANG'] variable. Upgrading from Pro versionYou need to remove the old rewrite rules from your .htaccess file. To keep the indexed translated pages you can use the following rewrite rule. RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ http://$1.domain.com/$2 [R=301,L,QSA] FAQ |
