URL Redirect with Pro version
Jun 14, 2011 11:14 pm by Playalosarcos
Jun 14, 2011 11:14 pm by Playalosarcos
I have installed the pro version and with Gtranslate everything is working perfectly. However I have a very troublesome problem.
When you change the language of the site and are looking at for example : http://www.playalosarcos.com/es/index.php everything works fantastic except the links to external features of the site. When you click on a link that goes to an external resource it is adding the /es to the link which will obviously mark an error because it does not exist. How can i keep gtranslate from adding the /es to the external links?
In specific what i am talking about is when you click on the button to use the Live chat. In English it opens perfectly as it should:
http://www.playalosarcos.com/livezilla/ ... xB&hg=Pw__
but when viewing in Spanish it opens:
http://www.playalosarcos.com/es/livezil ... xB&hg=Pw__
which does not exist and marks an error.
Any ideas??
The code I have used to install that button is this:
<a href="javascript:void(window.open('http://www.playalosarcos.com/livezilla/chat.php?intgroup=UExB&hg=Pw__','','width=590,height=610,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://www.playalosarcos.com/livezilla/image.php?id=01&type=inlay&hg=Pw__&intgroup=UExB" width="120" height="30" border="0" alt="LiveZilla Live Help" /></a>
Thanks!!
Re: URL Redirect with Pro version
Jul 5, 2011 4:47 pm by hosteris
Jul 5, 2011 4:47 pm by hosteris
Bien, creo me entenderás en español.
Sólo agrega esto a tu .htaccess:
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/livezilla/(.*)$ /lvezilla/$2 [R=301,L]
Saludos.
Re: URL Redirect with Pro version
Jul 7, 2011 10:43 am by Edvard
Jul 7, 2011 10:43 am by Edvard
You can add class="nturl" to <a> tag to force it to not add the language code into URL. It shouldn't add the language code into the URL if the URL points to other site.
Not sure about the Chat, I was able to see it in both languages.
Re: URL Redirect with Pro version
Jul 23, 2011 11:33 am by [email protected]
Jul 23, 2011 11:33 am by [email protected]
I can't underdtand how class="nturl" works.
Help me to write php code with class="nturl"please.
I want use URL "http://lokhnin.com/uk/post" but not javascript:doGTranslate('ru|uk')
Code #1:
<a href="<?php echo home_url( '/' ); echo "uk"; echo $_SERVER["REQUEST_URI"]; ?>" title="Ukrainian" class="gflag" style="background-position:-100px -400px;"><img src="http://lokhnin.com/wp-content/plugins/gtranslate/blank.png" height="32" width="32" alt="Ukrainian" /></a>
URL #1 (main page):
http://lokhnin.com/uk/uk/
URL #2 (twice "/uk/uk/"):
http://lokhnin.com/uk/uk/browse/persona ... l-literacy
I've tried use this code <?php echo 'http://lokhnin.com/'; echo "uk"; echo $_SERVER["REQUEST_URI"]; ?> code, but a've got the same result.
I've tried use class="nturl", but a've got the same result, code:
<a class="nturl" href="<?php echo 'http://lokhnin.com/'; echo "uk"; echo $_SERVER["REQUEST_URI"]; ?> " title="Ukrainian" class="gflag" style="background-position:-100px -400px;"><img src="http://lokhnin.com/wp-content/plugins/gtranslate/blank.png" height="32" width="32" alt="Ukrainian" /></a>
Re: URL Redirect with Pro version
Jul 23, 2011 4:37 pm by [email protected]
Jul 23, 2011 4:37 pm by [email protected]
found the answere here:
gtranslate/excluding-links-from-rewriting-t355.html\
Re: URL Redirect with Pro version
Jul 23, 2011 8:42 pm by Edvard
Jul 23, 2011 8:42 pm by Edvard
Since you already have class="gflag" you need to replace it with class="gflag nturl"
SIMILAR TOPICS
Googlebot seeing desktop version of site instead of mobilel | Mar 16, 2018 3:06 am | Replies: 5 | Post by: natastna2 |
GTranslate pay version | Jan 1, 2018 3:28 pm | Replies: 1 | Post by: Chrystelle |
differend cached version? | Sep 17, 2017 4:33 pm | Replies: 7 | Post by: durofer |
Use WWW as default translated version of site | Sep 20, 2017 6:43 pm | Replies: 1 | Post by: eureporter |
Translations lost and reverted to wrong version. | Dec 6, 2016 4:07 pm | Replies: 5 | Post by: sadashiv |