Re: [PHP-DEV] Re: Problems with 301 redirects

2006-11-08 Thread Edin Kadribasic
[EMAIL PROTECTED] wrote: 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

[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-06 Thread dAniel hAhler
[EMAIL PROTECTED] wrote: 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? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Re: Problems with 301 redirects

2006-11-04 Thread Michael Wallner
[EMAIL PROTECTED] wrote: I'm using the following code: header(Status: 301 Moved Permanently); header(Location: mynewurl); exit(); Never ever use a Status header. Either set the third param to header() to the intended response status code or use a HTTP/1.1 301 header string. See

[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] Re: Problems with 301 redirects

2006-11-03 Thread Unknown W. Brackets
Shouldn't you use... header('HTTP/1.0 301 Moved Permanently'); header('Location: http://...'); That is what I've always used and it's worked for me. Additionally, the method you have suggested does not work for me. -[Unknown] Original Message Someone on the php-general