Not Translate 404 Page

Popular automatic website translation tool

Not Translate 404 Page

Postby rcosta » Mon Jul 13, 2015 8:32 pm

Hello
Wonder if there is a possibility of not being made the translation of error page 404 - Page Not Found.
If the page translation is made http reponse is HTTP/1.1 200 OK instead of 404 - Page not found.
If the original page does not exists go to the default error page and not to translate it.
Regards
rcosta
 
Posts: 38
Joined: Sun Apr 14, 2013 5:41 pm

Re: Not Translate 404 Page

Postby Yana » Wed Jul 15, 2015 8:11 pm

Hi,
You can add class="notranslate" to the wrapper element .
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: 4129
Joined: Thu Jan 12, 2012 6:21 pm

Re: Not Translate 404 Page

Postby rcosta » Fri Jul 17, 2015 2:00 am

Hello

If i add class="notranslate" to the wrapper element that element i know that this element will not be translated, but http reponse remains HTTP/1.1 200.

The problem is not in the translation, but the response that the server gives a page that does not exist.

If the url http://www.mysite.com/page-not-exists the answer given by the server is 404 - Page Not Found, but the response to http://www.mysite.com/fr/page-not-exists is HTTP/1.1 200 - Page Found with the title "404 - Page Non Trouvée".

This is a problem since can create SOFT 404 pages. Http server return 200 of a non-existent page.

The problem is in the http server return code and not in the page translation.

I need to know if there is a possibility that the error page not be captured by GTranslate when the original page does not exist, or else the server returns the error 404 with the translation of the error page made.

Regards
rcosta
 
Posts: 38
Joined: Sun Apr 14, 2013 5:41 pm

Re: Not Translate 404 Page

Postby Edvard » Fri Jul 17, 2015 10:52 pm

Hi,

If you return 404 http response code it will not be translated.

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

Re: Not Translate 404 Page

Postby rcosta » Sat Jul 18, 2015 12:47 am

Edvard wrote:Hi,

If you return 404 http response code it will not be translated.

Thanks!

It is not true. The error page is translated and http server return code 200 - Page Found.
rcosta
 
Posts: 38
Joined: Sun Apr 14, 2013 5:41 pm

Re: Not Translate 404 Page

Postby rcosta » Sat Jul 18, 2015 1:03 am

I give an example:
This page does not exist:
http://www.pintarcolorir.com/desenhos/b ... ney-tunes/

but this pages exist:
htt​p:/​/ww​w.p​int​arc​olo​rir​.co​m/r​o/d​ese​nho​s/b​aby​-lo​one​y-t​une​s/

HTTP/1.1 200 OK
Date: Fri, 17 Jul 2015 18:55:14 GMT
Server: Apache/2.2.15
X-Powered-By: PHP/5.3.3
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache
last-modified: Thu May 30 01:00:00 EDT 2012
Content-Length: 761
Connection: close

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Nu A Fost Găsit</h1>
<p>A solicitat URL / desene / baby-Looney-melodiile / nu a fost găsit pe acest server.</p>
</body></html>
<!-- generated by GTranslate Pro v3.141592 visit https://gtranslate.io -->

This is not right. The http server should return 404 and not 200.
rcosta
 
Posts: 38
Joined: Sun Apr 14, 2013 5:41 pm

Re: Not Translate 404 Page

Postby Edvard » Mon Jul 20, 2015 7:19 pm

Hi,

In Enterprise version the issue is resolved. If you want we can upgrade your Pro license to Enterprise.

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: 4179
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

2GLux