[PHP-DEV] Re: Problems with 301 redirects

2006-11-07 Thread ianevans
header(Location: http://...,false,301); This works here with PHP 5.1.7-dev and 5.2.1-dev and mod_fastcgi. Have you tried just that line? Without any HTTP/-header? I've tried every combination. Just tried it again and it still returns a 302. BTW, not using mod_fastcgi as we're not running

[PHP-DEV] Re: Problems with 301 redirects

2006-11-04 Thread ianevans
Never ever use a Status header. As I mentioned in my email, I have used the HTTP string: header(HTTP/1.1 301 Moved Permanently); header(Location: http://...;); exit(); produces a 302. header(Location: http://...;); header(HTTP/1.1 301 Moved Permanently); exit(); produces a 302.

[PHP-DEV] Problems with 301 redirects

2006-11-03 Thread ianevans
Someone on the php-general list suggested I write here before submitting this to bugs.php.net to see if it was a known issue. Having a problem here trying to redirect some old pages. Running php 5.1.4 as fastcgi under lighttpd. I've recently noticed using a server header check that my 301