>Number: 1744 >Category: mod_rewrite >Synopsis: 404 errors disappear through mod_rewrite >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jan 30 03:20:00 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.2.5 >Environment: [EMAIL PROTECTED]:oa % uname -a;cc -v Linux safir.spray.fi 2.0.33 #2 Sun Dec 21 17:19:52 EET 1997 i686 unknown Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs gcc version 2.7.2.1
pretty standard Apache install, except following extra modules have been added: mod_jserv, mod_php, mod_php3 (with mysql support) >Description: Given a ~user/.htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase /~user RewriteRule ^test notfound.html and no file named notfound.html, I get: % telnet localhost 80 GET /~user/test HTTP/1.0 HTTP/1.1 404 File Not Found Date: Fri, 30 Jan 1998 11:05:34 GMT Server: Apache/1.2.5 Connection: close Content-Type: text/html <HTML><HEAD> <TITLE>404 File Not Found</TITLE> </HEAD><BODY> <H1>File Not Found</H1> The requested URL /~user/notfound.html was not found on this server.<P> </BODY></HTML> However, the server log entry for this request will be: 127.0.0.1 - - [30/Jan/1998:13:12:56 +0200] "GET /~user/test HTTP/1.0" 200 170 "-" "-" Note that the hit is not logged as 404 Not Found, but as 200 OK. >How-To-Repeat: Hopefully the above .htaccess will repeat it.. >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]
