[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
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
[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:
[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
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.
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