Global Redirect it works fine but it returns HTTP code 200 instead of 301.

It returns HTTP/1.1 200 OK on a URL like node/366.

My environment: Drupal 6.6, i18n, Global Redirect 6.x-1.0

Comments

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

Sounds like a duplicate of... #227180: Sometimes redirect only by HTTP/1.1 200 OK (possibly only in vbDrpual)... which was closed.

Can you provide an example broken URL please?

What server are you running?

claudiu.cristea’s picture

Try http://www.ascentgroup.ro/en/node/185. I used http://www.iwebtool.com/http_headers to test.

My environment:

  • Apache 2.2.9 (Unix)
  • PHP 5.2.6
  • Drupal 6.6
  • Modules that can impact:
    • Internationalization 6.x-1.0-beta4
    • Pathauto 6.x-2.x-dev
    • Path Redirect 6.x-1.x-dev
nicholasthompson’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Works fine for me....

[nthompson@deviant ~]$ curl -I http://www.ascentgroup.ro/en/node/1046
HTTP/1.1 301 Moved Permanently
Proxy-Connection: close
Connection: close
Via: 1.1 www.google.co.uk
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Date: Mon, 27 Oct 2008 15:36:30 GMT
Location: http://www.ascentgroup.ro/en/services/fiscal-consultancy
Content-Type: text/html; charset=utf-8
Server: Apache
X-Powered-By: PHP/5.2.6
Set-Cookie: SESS77462911f862824a22fb4ca63fcad057=e2eaa6bda0db03298e8507ec7d30f532; expires=Wed, 19 Nov 2008 19:09:50 GMT; path=/; domain=.ascentgroup.ro
Last-Modified: Mon, 27 Oct 2008 15:36:30 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Keep-Alive: timeout=5, max=100

However if I use the website you specified, they claim its a 200 OK. The reason is, they are listing the SECOND request (ie, the one AFTER the redirect).

If you use this site:
http://www.seoconsultants.com/tools/headers.asp

They show both requests - the first as a 301 and the seconds as a 200.