Bug #2309: header('Location:...') logged as 200 not 302 for directory indicies w/apache
| From: | sklar at student dot net | Date: | Wed, 15 Sep 1999 20:20:01 +0000 |
| Subject: | Bug #2309: header('Location:...') logged as 200 not 302 for directory indicies w/apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10971@lists.php.net to get a copy of this message | ||
From: sklar@student.net
Operating system: Linux 2.0.36
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: header('Location:...') logged as 200 not 302 for directory indicies
w/apache
<?php header('Location: http://www.php.net/');
?>
always successfully sends the right headers to the client.
However, when I request the page that contains this code as a directory, e.g.
http://www.example.com/foo/
Apache logs a 200 status code, not 302.
http://www.example.com/foo/index.html
causes a 302 to correctly be logged.
I'm not sure whether this is a PHP or an Apache issue. I'm using Apache 1.3.9.