httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46743] New: Inconsistent behavior of "RewriteOptions inherit" in htaccess file
Date Fri, 20 Feb 2009 05:19:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46743

           Summary: Inconsistent behavior of "RewriteOptions inherit" in
                    htaccess file
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: matt@mattmccutchen.net


Originally posted at:
http://marc.info/?l=apache-httpd-users&m=123343931109341&w=2

The behavior of "RewriteOptions inherit" in a subdirectory's htaccess file
differs in two places from what I would expect.  The documentation does not
address these issues, but I would argue that my expectations are more
reasonable than the current behavior because they are consistent with the
behavior if the subdirectory has no mod_rewrite configuration at all.

1. Inherited rules are interpreted with respect to the subdirectory (meaning
that the subdirectory's per-dir prefix is stripped and RewriteBase is added). 
I would expect each rule to always be interpreted with respect to the directory
that defined it, so that the meaning of a "^" anchor in a rule pattern is
consistent.  (The original post includes a demonstration.)

2. If a directory is requested without a trailing slash, rewriting is
completely skipped.  It makes sense to skip the directory's own rules to avoid
bug 20195, but I think inherited rules should still run.  Otherwise, there's no
way to rewrite the request short of moving the entire mod_rewrite configuration
to the parent htaccess file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message