Redirection for not duplicate

Popular automatic website translation tool

Redirection for not duplicate

Postby yule » Sat Aug 20, 2016 12:48 pm

Hello,

How to redirect to avoid duplicate content?

It is mentioned that one must remove these redirects to use your services, then I noticed this proposal

Code: Select all
RewriteCond %{HTTP:X-GT-Lang} ^$ # requests from our network will have X-GT-Lang header
RewriteCond %{HTTP_HOST} ^fullgambler.com
RewriteRule (.*) http://www.fullgambler.com/$1 [R=301,L]

But when I use it I get an error

Internal Server Error.....

I do not want this (example) http://fullgambler.com/de/
This address can be directly writing it and I wish this is displayed and if it happens, it redirects here
http://www.fullgambler.com/de/

Thank you to tell me how to do a redirect without jeopardizing the translation system

Have a good day
Steve
yule
 
Posts: 15
Joined: Fri Dec 02, 2011 5:07 pm

Re: Redirection for not duplicate

Postby Yana » Sat Aug 20, 2016 2:53 pm

Hi,
Please try to remove comment # requests from our network will have X-GT-Lang header.
If it doesn't help you, let us know and we will configure www redirection on our side.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: Redirection for not duplicate

Postby yule » Sat Aug 20, 2016 4:50 pm

Sorry but the problem persists only the primary language (fr)

Code: Select all
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} ^fullgambler.com$
RewriteRule ^(.*) http://www.fullgambler.com/$1 [R=301,L]


fullgambler.com -> h*tp://www.fullgambler.com it's ok

but
h*tp://fullgambler.com/forex/comparatif-broker-forex.php it's no ok...

h*tp://fullgambler.com/en/forex/comparatif-broker-forex.php -> h*tp://www.fullgambler.com/en/forex/comparatif-broker-forex.php it's ok

by cons with the sub folder that indicate the languages it's ok, it's only the primary language that it does not redirect (except on the index)
Steve
yule
 
Posts: 15
Joined: Fri Dec 02, 2011 5:07 pm

Re: Redirection for not duplicate

Postby Yana » Sun Aug 21, 2016 9:14 pm

Dear Steve,

Please enable www redirection for your website and remove the following rules from .thaccess.

Code: Select all
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} ^fullgambler.com$
RewriteRule ^(.*) http://www.fullgambler.com/$1 [R=301,L]


We will configure it on our server.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: Redirection for not duplicate

Postby yule » Tue Aug 23, 2016 12:53 am

Hello Yana

I did what you asked me.

Now for this address
h * tp: //fullgambler.com/forex/comparatif-broker-forex.php

I have this message

Error 404 Vhost unknown

vhost unknown

Varnish server L7


redirection on your server is not in place?

Thanks in advance
Steve
yule
 
Posts: 15
Joined: Fri Dec 02, 2011 5:07 pm

Re: Redirection for not duplicate

Postby Edvard » Tue Aug 23, 2016 1:27 am

Hi Steve,

I see you are trying to redirect your domain.com to www.domain.com. It is something which is not related to GTranslate. Please search how to do the redirect with your .htaccess and when it is done, just let us know.

The common rewrite rules to force www is:
Code: Select all
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]


Thanks!
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: 4403
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Redirection for not duplicate

Postby yule » Tue Aug 23, 2016 2:19 am

Hello,

I do not understand nothing ... First you must disable redirection, now I have it back and I know more or I'm ...

I will write to my webhost to try to get out and coming back to you for this redirection

Now the translation appears anything with or without .htaccess redirection arghhhh .....

I'll put my field as originally with my host, with a 301 to fullgambler.com -> www.fullgambler.com

The .htaccess redirects will not work with GTranslate ... I have to make some wrong things ...
Good night
Steve
yule
 
Posts: 15
Joined: Fri Dec 02, 2011 5:07 pm

Re: Redirection for not duplicate

Postby Yana » Tue Aug 23, 2016 5:47 pm

Dear Steve,

Just redirect your domain to www . We have configured www for our network requests on our server.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4547
Joined: Thu Jan 12, 2012 6:21 pm

Re: Redirection for not duplicate

Postby hiepelines » Wed Sep 07, 2016 10:22 pm

ASP or PHP ?
Thanks
hiepelines
 
Posts: 1
Joined: Tue Aug 16, 2016 12:21 pm

Re: Redirection for not duplicate

Postby Edvard » Fri Sep 09, 2016 7:40 pm

We have support for all HTML websites, it doesn't matter if the website HTML is generated with ASP or PHP or any other programming language.

Thanks!
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: 4403
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 1 guest