[Solved]Problems with "nturl"

Popular automatic website translation tool

[Solved]Problems with "nturl"

Postby yenerich » Thu Jul 19, 2012 8:54 pm

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.
yenerich
 
Posts: 46
Joined: Sat Jun 30, 2012 5:16 pm

Re: Problems with "nturl"

Postby yenerich » Thu Jul 19, 2012 9:35 pm

Solved, i didnt notice this: class="nturl" class="notranslate"

Should be: class="nturl notranslate"
yenerich
 
Posts: 46
Joined: Sat Jun 30, 2012 5:16 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux