On Wed, November 1, 2006 12:24 pm, ianevans@xxxxxxxxxxxxxx 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. First, determine if it's PHP or lighthttpd (?) that is doing it wrong. Write a quick-hack Perl script to just do a 301 and Location and see if Perl+lighthttpd gets you a 302 or a 301. We're talking a 5-minute Google copy-paste for this, almost for sure. (Just make sure the browser re-directs so it's "working" before you assume it is just from wget output...) If it's PHP only, then submit a bug report at http://bugs.php.net as, to this naive reader, this is a pretty clear-cut bug. If it's both PHP and Perl, odds are real good you need to take this up with the lighthttpd folks, really, as there ain't much we can do about it here... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php