httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46743] New: Inconsistent behavior of "RewriteOptions inherit" in htaccess file
Date Fri, 20 Feb 2009 05:19:57 GMT

           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

Originally posted at:

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message