Bug #2309 Updated: header('Location:...') logged as 200 not 302 for directory indicies w/apache
| From: | sander@php.net | Date: | Sun, 16 Jun 2002 12:58:16 +0000 |
| Subject: | Bug #2309 Updated: header('Location:...') logged as 200 not 302 for directory indicies w/apache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10690@lists.php.net to get a copy of this message | ||
ID: 2309
Updated by: sander@php.net
Reported By: sklar@student.net
-Status: Open
+Status: Feedback
Bug Type: Misbehaving function
Operating System: Linux 2.0.36
PHP Version: 3.0.12
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[1999-09-15 16:20:01] sklar@student.net
<?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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2309&edit=1