Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 94267 invoked from network); 24 Jul 2006 11:10:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jul 2006 11:10:53 -0000 Received: (qmail 29196 invoked by uid 500); 24 Jul 2006 11:10:48 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 29060 invoked by uid 500); 24 Jul 2006 11:10:48 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 28138 invoked by uid 99); 24 Jul 2006 11:10:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 04:10:42 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 04:10:41 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id A3DFE714293; Mon, 24 Jul 2006 11:08:23 +0000 (GMT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 40102] New: - SCRIPT_NAME set incorrectly with mod_rewrite Message-ID: X-Bugzilla-Reason: AssignedTo Date: Mon, 24 Jul 2006 11:08:23 +0000 (GMT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=40102 Summary: SCRIPT_NAME set incorrectly with mod_rewrite Product: Apache httpd-2 Version: 2.0.58 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: mod_rewrite AssignedTo: bugs@httpd.apache.org ReportedBy: martel@post.pl SCRIPT_NAME is passed incorrectly to PHP depending on where you place the mod_rewrite rule. If it is placed in .htaccess or under , the SCRIPT_NAME is initialized correctly but when you place the same rule under it is an empty string (or any other bogus value). I wasn't sure if it was an Apache or PHP bug and I have posted it on PHP bugtracker first. They claim it's an Apache bug: http://bugs.php.net/bug.php?id=38141 The rule I'm using is: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 Or (it's not relevant - both have the same result): RewriteEngine On RewriteRule !\.(js|ico|gif|jpg|png|css|swf)$ index.php Apache2 PHP SAPI. Apache version is 2.0.58 but I guess it may not be relevant as it was reported by number of people (though I don't know what their setups are). Tested on Gentoo Linux. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org