For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > May 2006 > 301 redirect returning OK?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author 301 redirect returning OK?
w.breuer@gmail.com

2006-05-30, 6:59 pm

After implementing

> header("HTTP/1.x 301 Moved Permanently");
> header("location: http://www.newdomain.eu/");


or even HTTP/1.0 or /1.1 into my scripts and though it works for
Internet explorer and firefox i keep on getting, if i take a look into
the headers:

> HTTP/1.x 301 OK


Using .htaccess my servers returns just fine `HTTP/1.x 301 Moved
Permanently`

The questions I have are:
1) should i care (ie; does google care :P)
2) how is 301 in combination with OK possible

Does somebody know the answers?:)

-William
Demo: see the headers from http://www.woordenboekjes.nl/
it should go to http://www.woordenboek.eu/

Janwillem Borleffs

2006-05-31, 7:00 pm

w.breuer@gmail.com wrote:
> The questions I have are:
> 1) should i care (ie; does google care :P)
> 2) how is 301 in combination with OK possible
>


1) Google is smart enough to follow the redirection;
2) This is possible, because a 30(1|2) header indicates that the source is
available, but at a different location (contrary to the 40x range of return
codes).


JW


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com