[Solved]Problems with "nturl"
Jul 19, 2012 4:54 pm by yenerich
Jul 19, 2012 4:54 pm by yenerich
I change the htaccess to be able to make my canonical urls fine.
The problems is that some links that i made suddenly fails, like if class="nturl" was not working.
First my htaccess code:
# 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]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2&glang=$1&force_translation=1 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1&glang=$1[L,QSA]
Now, this kind of link fails:
$Country = "http://www.mp3doctor.com/is";
$fULLuRL = $Country . $_SERVER['REQUEST_URI'];
echo '<li><a href="' . $fULLuRL . '" class="nturl" class="notranslate">' . $fULLuRL . '</a></li><br>';
Thanks in advance for any help.
Re: Problems with "nturl"
Jul 19, 2012 5:35 pm by yenerich
Jul 19, 2012 5:35 pm by yenerich
Solved, i didnt notice this: class="nturl" class="notranslate"
Should be: class="nturl notranslate"
SIMILAR TOPICS
Error message and URL problems | Feb 6, 2019 11:16 am | Replies: 1 | Post by: Kidbooo |
How to add rel="nofollow" to GTranslate links ? | Sep 19, 2018 10:10 am | Replies: 5 | Post by: agatti |
Caching and Translation problems since upgrade | Jan 16, 2018 8:49 am | Replies: 9 | Post by: spektrume |
<html dir="ltr" lang="no" prefix="og: http://ogp.me/ns#"> | Dec 19, 2017 7:35 am | Replies: 2 | Post by: besybuy |
[SOLVED]double dropdown | Oct 26, 2017 8:26 am | Replies: 3 | Post by: danielesantosubito |