Re: 301 redirect returning 302 instead
| From: | Ed Lazor | Date: | Wed, 01 Nov 2006 19:49:30 +0000 |
| Subject: | Re: 301 redirect returning 302 instead | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244031@lists.php.net to get a copy of this message | ||
Have the lighttpd guys come up with any ideas?
On Nov 1, 2006, at 10:24 AM, ianevans@digitalhit.com wrote:
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 --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php