How to translate a website on default
Sep 21, 2011 4:02 pm by [email protected]
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
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
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 widgets | Feb 28, 2019 2:43 pm | Replies: 0 | Post by: Edvard |
not aligned on website | Feb 27, 2019 2:24 pm | Replies: 1 | Post by: mrkapable007 |
Highly increased load on website from 51.255.131.149 | Feb 19, 2019 8:29 pm | Replies: 1 | Post by: Ant_Z |
wordpress amp link not translate | Dec 31, 2016 10:11 am | Replies: 12 | Post by: besybuy |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |