httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51968] New: RewriteRule documentation unclear/misleading about substitution
Date Wed, 05 Oct 2011 21:03:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51968

             Bug #: 51968
           Summary: RewriteRule documentation unclear/misleading about
                    substitution
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: docs@httpd.apache.org
        ReportedBy: chealer@gmail.com
    Classification: Unclassified


The description of RewriteRule at
http://httpd.apache.org/docs/current/en/mod/mod_rewrite.html#rewriterule
contains:

As already mentioned, all rewrite rules are applied to the Substitution (in the
order in which they are defined in the config file). The URL is completely
replaced by the Substitution and the rewriting process continues until all
rules have been applied, or it is explicitly terminated by a L flag.

I do not understand what the first sentence means.

The second sentences assumes rules operate on URL-s. In reality, as the section
explains earlier, it may operate on relative filesystem paths or on URL-paths.
Also, the replacement is not necessarily Substitution. As the section explains
earlier:

When using the rewrite engine in .htaccess files the per-directory prefix
(which always is the same for a specific directory) is automatically removed
for the RewriteRule pattern matching and automatically added after any relative
(not starting with a slash or protocol name) substitution encounters the end of
a rule set. See the RewriteBase directive for more information regarding what
prefix will be added back to relative substutions.

BTW, note typo "substutions".

-- 
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: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message