Forum Archive - How to translate a website on default

How to translate a website on default
Sep 21, 2011 4:02 pm by [email protected]
How to translate a website on default? i want to translate the site on default without using a drop down menu
Re: How to translate a website on default
Sep 21, 2011 6:32 pm by 1m5FDMR2D4al
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] 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] You have to modify that. And i think you can't translate site.com/ becouse it's necessary to get contest of itself and recursion isn't good there. Install your site content to some folder and make any query to root folder (site.com/) translating not itself but site.com/somefolder, same for other languages. In other worlds, first move your content to some folder, and then change your rewrite rules.
Re: How to translate a website on default
Sep 22, 2011 12:28 pm by Edvard
Yes, that is correct. You can also avoid the recursion if you check if the request came from the same server IP address to stop the recursion.

SIMILAR TOPICS

Google stopped providing website translator widgetsFeb 28, 2019 2:43 pmReplies: 0Post by: Edvard
not aligned on websiteFeb 27, 2019 2:24 pmReplies: 1Post by: mrkapable007
Highly increased load on website from 51.255.131.149Feb 19, 2019 8:29 pmReplies: 1Post by: Ant_Z
wordpress amp link not translateDec 31, 2016 10:11 amReplies: 12Post by: besybuy
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756

Try GTranslate with a free 15 day trial