[Solved] rel canonical

Popular automatic website translation tool

Re: rel canonical

Postby Edvard » Sun Feb 12, 2012 6:14 pm

Hi,

You can check the selected language and add the language code in your canonical href.

url-language-code-t320.html
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: rel canonical

Postby Edvard » Mon Feb 13, 2012 1:36 am

When you select Ukrainian the glang will be equal to uk. Why in your case it is fr and why you add glang=fr in the end?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


Re: rel canonical

Postby Edvard » Wed Feb 15, 2012 6:03 pm

Yes, that is because in the URL you have another glang=fr, why that appears?

The result should be http://lokhnin.com/uk/ instead of http://lokhnin.com/uk/?glang=fr
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: rel canonical

Postby [email protected] » Thu Feb 16, 2012 2:57 pm

May be I have made a mistake in .htacess ?

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.lokhnin.com [NC,OR]
RewriteCond %{HTTP_HOST} ^lokhnin.ru [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lokhnin.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^lohnin.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lohnin.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^lohnin.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lohnin.com$ [NC]
RewriteRule ^(.*)$ http://lokhnin.com/$1 [R=301,L]
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&glang=$1 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1&glang=$1 [L,QSA]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
[email protected]
 
Posts: 7
Joined: Sat Jul 23, 2011 3:18 pm

Re: rel canonical

Postby Edvard » Fri Feb 17, 2012 2:52 am

Hi,

It is correct and I'm not able to replicate what you describe. I never see ?glang in the URL when I change languages...

Can you try with a different browser or clear the browser cache?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia



  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux