You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/05/13 17:03:19 UTC
DO NOT REPLY [Bug 34908] New: -
subrequest from RewriteCond with -U always returns status=200
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34908>.
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=34908
Summary: subrequest from RewriteCond with -U always returns
status=200
Product: Apache httpd-2.0
Version: 2.0.54
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: d.vandok@ecn.nl
>From the URL rewriting guide, I followed the example on how to redirect URLS
which initially yield an error.
Here is wat I currently have:
RewriteEngine On
RewriteCond /some/nonsens !-U
RewriteRule ^(.+) http://some.where.else.com/
Redirection doesn't happen. The debugging output of mod_rewrite shows:
130.112.111.227 - - [13/May/2005:16:59:53 +0200]
[p2249/sid#8150d28][rid#81ee1e8/initial] (3) [per-dir /var/www/ecnweb/] strip
per-dir prefix: /var/www/ecnweb/zon -> zon
130.112.111.227 - - [13/May/2005:16:59:53 +0200]
[p2249/sid#8150d28][rid#81ee1e8/initial] (3) [per-dir /var/www/ecnweb/] applying
pattern '^(.+)' to uri 'zon'
130.112.111.227 - - [13/May/2005:16:59:53 +0200]
[p2249/sid#8150d28][rid#81ee1e8/initial] (5) RewriteCond URI (-U) check:
path=/some/nonsens -> status=200
130.112.111.227 - - [13/May/2005:16:59:53 +0200]
[p2249/sid#8150d28][rid#81ee1e8/initial] (4) RewriteCond: input='/some/nonsens'
pattern='!-U' => not-matched
130.112.111.227 - - [13/May/2005:16:59:53 +0200]
[p2249/sid#8150d28][rid#81ee1e8/initial] (1) [per-dir /var/www/ecnweb/] pass
through /var/www/ecnweb/zon
Clearly the line marked (5) is strange...the status is 200 (OK?) but the URL is
definitely not there.
--
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