Re: 301 redirect returning 302 instead
| From: | ianevans at digitalhit dot com | Date: | Wed, 01 Nov 2006 18:24:49 +0000 |
| Subject: | Re: 301 redirect returning 302 instead | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244026@lists.php.net to get a copy of this message | ||
> Just a shot in the dark, but it's possible that providing a "Location"
> header resets the status response. Try swapping your two header calls.
Stut:
Flipping the headers doesn't work, unfortunately, running wget still shows
a 302 being returned.
Kris:
You need both headers. Just giving the Location would give a 302, when a
301 is the goal.
Just to add more info: We're running php as fastcgi under lighttpd. Doing
a little searching I see that there is some weirdness with http headers
when PHP is run as a CGI, but I can't seem to see any solutions out there.
Obviously I can't be the ONLY person running this way, so there has to be
a solution out there.
--
Ian Evans
Chairman & Executive Producer
DigitalHit.com