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 2009/02/20 06:19:57 UTC

DO NOT REPLY [Bug 46743] New: Inconsistent behavior of "RewriteOptions inherit" in htaccess file

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