When I translate, it doesn't change the URL
Feb 28, 2011 12:37 pm by ptheisen
Feb 28, 2011 12:37 pm by ptheisen
I installed Gtranslate Pro but it behaves still exactly like the standard version. I can click on languages, get the translation, but the URL doesn't change to have the /mysite/DE/mypage.html format.
See my PHP info under: http://www.zeitgeistmanager.com/phpinfo.php
Thanks and best regards,
Peter
This is my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
# gtranslate config
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]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Re: When I translate, it doesn't change the URL
Feb 28, 2011 12:42 pm by Edvard
Feb 28, 2011 12:42 pm by Edvard
Hi,
You need to use Redirect translation method, so it will change the URL.
Also, when I go to http://www.zeitgeistmanager.com/ru/ it gives me 404 not found error. Make sure that .htaccess file is being parsed. You can ask your hosting provider.
SIMILAR TOPICS
wordpress amp link not translate | Dec 31, 2016 10:11 am | Replies: 12 | Post by: besybuy |
GT doesn't work...error 404 page | Jan 28, 2019 5:36 pm | Replies: 1 | Post by: vincenzodinuzzo |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Best way to translate a page in WordPress? | Jan 7, 2019 11:10 am | Replies: 3 | Post by: Tonnystark |
how to translate site right to left for arabic in WordPress | Dec 26, 2018 9:02 am | Replies: 1 | Post by: Hammond753 |