Originally posted by statrat
Note: HTTP/1.1 requires an absolute...
Actually, HTTP/1.1 doesn't require an absolute URI, some browsers do, usually older ones. It is always good practice to use absolute URIs, however.
The problem I see is that you are using single quotes inside. The location header doesn't require any quotes: header("Location: URL");