Redirect error

claudiu.cristea - September 11, 2007 - 16:41
Project:Localizer
Version:5.x-1.9
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I'm using Localizer 5.x-1.9 for a bilingual site (romanian & english). The main language is is romanian. I'm using URL language prefix for language switch.

I have noticed that Google refuse to index pages in English (pattern: http://www.ascentgroup.ro/en/*) and say that these URL's are "URLs not followed" by the reason "Redirect error". Here there is the Google explanation about these errors: http://www.google.com/support/webmasters/bin/answer.py?ans....

I have used http://www.seoconsultants.com/ to check server headers and I found that an English page will make a lot of redirects until is displayed and do not return the 200 code. Here are the server headers returned by the page: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea

#1 Server Response:  http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:44 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=5c5c77e5cacac9f3e1681487edf4f7e9; expires=Thu, 04-Oct-2007 20:10:04 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:44 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#2
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:44 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=fd1d519952b79e6a214ede5d0fbdaaa1; expires=Thu, 04-Oct-2007 20:10:04 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:44 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#3
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:45 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=8b716987e7e4db8b6a37349c9304fdc4; expires=Thu, 04-Oct-2007 20:10:05 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:45 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#4
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:45 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=74942532399988294b9a366916977358; expires=Thu, 04-Oct-2007 20:10:05 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:45 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#5
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:45 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=dbc7b3cfe6e4b487b814c267bd8b3edf; expires=Thu, 04-Oct-2007 20:10:05 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:45 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#6
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:46 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=c7aab2023b1cee9ff5243d3a65bd51cf; expires=Thu, 04-Oct-2007 20:10:06 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:46 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#7
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:46 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=3f05f0d59966f765efe72ad625436640; expires=Thu, 04-Oct-2007 20:10:06 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:46 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#8
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:47 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=574304f02b8436db88f1adde224e3bdd; expires=Thu, 04-Oct-2007 20:10:07 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:47 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#9
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:47 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=85c69d6d4242bc55ec5443abd5142497; expires=Thu, 04-Oct-2007 20:10:07 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:47 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
#10
Server Response: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
HTTP
Status Code: HTTP/1.1 302
Date: Tue, 11 Sep 2007 16:36:48 GMT
Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.16 OpenSSL/0.9.7a
Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
X-Powered-By: PHP/4.3.10
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=7134e0c992e079065e46c26bfefee9e7; expires=Thu, 04-Oct-2007 20:10:08 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Tue, 11 Sep 2007 16:36:48 GMT
Location: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea
Connection:
close
Content-Type: text/html; charset=utf-8
Redirect Target: http://www.ascentgroup.ro/en/about-us/consultants/adela-cristea

Note the big timeout that possible is causing the redirect error.

The romanian translations simply return 200 HTTP code without making any loop.

#1

marcoBauli - October 1, 2008 - 10:16

might this be related to the issue at http://drupal.org/node/275214 ? A patch is available there

 
 

Drupal is a registered trademark of Dries Buytaert.