DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44279>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44279

           Summary: Add "iterate" flag to apply rule in a loop while pattern
                    matches
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I stumbled over a situation, where a RewriteRule was used to replace all
occurences of a pattern in the URL by something else.

This was solved by using N and L flag to restart the rules after a match and to
stop in case of non-match. This construct is a little complex, especially if
there are also other rules used.

It's very easy to implement an additional flag to let a single RewriteRule
iterate in a loop as long as the RewriteConds and the pattern applies. It's
similar to the "g" flag in /xxx/yyy/g.

I attach a patch against trunk and one against 2.2.x for source and docs.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to