On Mon, 2004-02-09 at 14:31, Lowell Allen wrote:
> A recent thread on the WebDesign-L raised the question of whether search
> engines can detect (and penalize sites for) PHP redirects of the form:
> 
> header("Location: http://www.whatever.com/";);
> 
> I don't see how that could be the case, since the redirect occurs on the
> server before any HTML is output to the browser. Someone else says:

Technically the header function sends an HTTP reply to the client
(browser) with your Location header in the response.  The client then
initiates a second HTTP request with the new URL.  I remember reading
that apache[1] will look at Location: headers and if it can handle the
request it will process it and pass the output of the Location's URL to
the browser.  Regardless, the content will be cached by search engines
but the original URL used to initiate the process will be associated
with the content.  To have the redirected URL remembered you need to
pass a 301 Permanent Redirect status instead.

[1] I can not find this anywhere after a short search on Google, it
could be incorrect.

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to