logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Why?: Non-Page Redirected to DirectoryIndex and 200 Status?
Author
jeff00seattle



Joined: 17 Sep 2009
Posts: 9

PostPosted: Thu 17 Sep '09 8:21    Post subject: Why?: Non-Page Redirected to DirectoryIndex and 200 Status? Reply with quote

If I have a htdocs\index.php file in the root directory and it is associated with:
Code:
<VirtualHost 127.0.0.1>
   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
   ServerName localhost
   DirectoryIndex index.php
</VirtualHost>


When calling an non-existant page: http ://localhost/sam.html, it is redirected to htdocs\index.php

And the access.log shows /sam.html has a HTTP success code of 200 and not HTTP error code of 404:
127.0.0.1 - - "GET /sam.html HTTP/1.1" 200 60255
127.0.0.1 - - "GET /index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524

Why is this occuring?

Jeff in Seattle


Last edited by jeff00seattle on Mon 21 Sep '09 16:07; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Sep '09 11:44    Post subject: Reply with quote

Hi Jeff from Nirvana town,
how did you configure your error pages?
Back to top
jeff00seattle



Joined: 17 Sep 2009
Posts: 9

PostPosted: Mon 21 Sep '09 15:52    Post subject: Reply with quote

Thanks for the reply.

No ErrorDocument(s) are enabled, all are commented out.

Jeff in Seattle
Back to top


Reply to topic   Topic: Why?: Non-Page Redirected to DirectoryIndex and 200 Status? View previous topic :: View next topic
Post new topic   Forum Index -> Apache