You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2011/10/05 23:03:37 UTC

DO NOT REPLY [Bug 51968] New: RewriteRule documentation unclear/misleading about substitution

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


DO NOT REPLY [Bug 51968] RewriteRule documentation unclear/misleading about substitution

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51968

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Rich Bowen <rb...@apache.org> 2011-10-10 00:18:36 UTC ---
Resolved in 2.2 and trunk, r1180734.

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


DO NOT REPLY [Bug 51968] RewriteRule documentation unclear/misleading about substitution

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51968

--- Comment #2 from Filipus Klutiero <ch...@gmail.com> 2011-10-10 00:42:51 UTC ---
Thank you Rich, this addresses very well the problem with the first sentence.
This report was broad, I opened a new report about the second sentence:
https://issues.apache.org/bugzilla/show_bug.cgi?id=52000
That one has an even better number!

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