GTranslate Pro for Joomla and external links
Dec 14, 2013 11:17 pm by q12321
Dec 14, 2013 11:17 pm by q12321
GTranslate Pro for Joomla translates external links (text and banners) with language suffixes (ru, pl, ar etc,) included.
For example:
http://jobera.com/banners/click14.html is correct banner link,
but after translation to polish language it becomes http://jobera.com/pl/banners/click14.html which is incorrect and leads into the non existent/empty page.
How to deal with this?
All the best, Stefan
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 1:21 pm by Edvard
Dec 15, 2013 1:21 pm by Edvard
Hi,
You may set a redirect in your .htaccess file to redirect all XX/banners/... to /banners/...
Thanks!
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 4:45 pm by q12321
Dec 15, 2013 4:45 pm by q12321
You may set a redirect in your .htaccess file to redirect all XX/banners/... to /banners/...
Can you elaborate on it?
Please give the correct code and some examples.
What about the external text links?
How to deal with them?
All the best, Stefan
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 5:06 pm by Edvard
Dec 15, 2013 5:06 pm by Edvard
Try to place this code before GTranslate rewrite rules:
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/banners/(.*)$ /banners/$2 [R=301,L]
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 5:48 pm by q12321
Dec 15, 2013 5:48 pm by q12321
What about the external text links?
How to deal with them?
You did not answer the above questions.
All the best, Stefan
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 6:35 pm by Edvard
Dec 15, 2013 6:35 pm by Edvard
Not sure what external links? Can you provide an example and what you need?
Re: GTranslate Pro for Joomla and external links
Dec 15, 2013 8:55 pm by q12321
Dec 15, 2013 8:55 pm by q12321
These are links to affiliate websites generated by Joomla's "Web Links Manager: Web Links".
For example:
before translation http://jobera.com/cv-builders/Online-CV-Builder.html is correct
after translation http://jobera.com/pl/cv-builders/Online-CV-Builder.html is incorrect and leads to empty page,
or
before translation http://jobera.com/cv-writing/The-CV-Centre.html
after translation http://jobera.com/pl/cv-writing/The-CV-Centre.html leads to empty page.
Where "cv-builders" and "cv-writing" represent "Categories" in "Web Links".
I need a solution to the problem.
I want the links after translation to lead to correct links before translation.
All the best, Stefan
Re: GTranslate Pro for Joomla and external links
Dec 16, 2013 10:24 am by Edvard
Dec 16, 2013 10:24 am by Edvard
Hi,
You will need to set a similar redirect rule in your .htaccess for each category of your external links. Ex:
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/cv-writing/(.*)$ /cv-writing/$2 [R=301,L]
...
It happens because GTranslate is not intended to translate external websites.
SIMILAR TOPICS
Gtranslate Multisite | Feb 12, 2019 7:27 am | Replies: 1 | Post by: infact_dat |
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Add-on gtranslate no longer works | Feb 2, 2019 6:01 am | Replies: 1 | Post by: DarylDixon |
Add links to all translated posts on every Wordpress post | Jan 14, 2019 8:51 pm | Replies: 5 | Post by: ptsniper |