Reputation: 461
I try to make a header redirect on an Google App engine instance with
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://".$location);
header("Connection: close");
die();
It's working on my local development environment. On Google App Engine I receive the 301 but it doesn't redirect to the new location, instead there's a white screen.
Upvotes: 3
Views: 1270
Reputation: 461
It was a encoding problem. I had to urlencode() all parts of $location. On my local MAMP environment there was no problem.
Upvotes: 1