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 52000] New: RewriteRule documentation unclear/misleading about substitution
Date Mon, 10 Oct 2011 00:39:11 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52000

             Bug #: 52000
           Summary: RewriteRule documentation unclear/misleading about
                    substitution
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        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/trunk/en/mod/mod_rewrite.html#rewriterule
contains:

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, or other flag which implies immediate termination, such as END or F.

This assumes that rules operate on URL-s. In reality, as the section
explains earlier, it may operate on relative filesystem paths or on URL-paths:

What is matched?

In VirtualHost context, The Pattern will initially be matched against the part
of the URL after the hostname and port, and before the query string (e.g.
"/app1/index.html").

In Directory and htaccess context, the Pattern will initially be matched
against the filesystem path, after removing the prefix that lead the server to
the current RewriteRule (e.g. "app1/index.html" or "index.html" depending on
where the directives are defined).


Note that something is missing in "or other flag" (maybe "or another flag").

-- 
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