Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Docs

DO NOT REPLY [Bug 51964] Documentation of RewriteRule flag skip unclear

 

 

Apache docs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Mar 31, 2012, 1:14 AM

Post #1 of 2 (130 views)
Permalink
DO NOT REPLY [Bug 51964] Documentation of RewriteRule flag skip unclear

https://issues.apache.org/bugzilla/show_bug.cgi?id=51964

Daniel Gruno <daniel [at] gruno> changed:

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

--- Comment #1 from Daniel Gruno <daniel [at] gruno> 2012-03-31 08:14:10 UTC ---
Clarified and if-then-else example given, although with 2.4, this could
probably be handled with a real <If> directive as well.

--
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 [at] httpd
For additional commands, e-mail: docs-help [at] httpd


bugzilla at apache

Apr 10, 2012, 8:47 AM

Post #2 of 2 (115 views)
Permalink
DO NOT REPLY [Bug 51964] Documentation of RewriteRule flag skip unclear [In reply to]

https://issues.apache.org/bugzilla/show_bug.cgi?id=51964

Filipus Klutiero <chealer [at] gmail> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED

--- Comment #2 from Filipus Klutiero <chealer [at] gmail> 2012-04-10 15:47:55 UTC ---
Ah, I see now. Thank you, that is a lot clearer.

I would still suggest some clarifications.
"This can be thought of as a goto statement in your rewrite ruleset."
could be
"This can be thought of as a forward-only goto statement in your rewrite
ruleset."

Also, the formulation "The last rule of the then-clause becomes skip=N, where N
is the number of rules in the else-clause:" for the if-then-else example would
make me think of the following if clause:

RewriteRule (.*\.gif) images.php?$1
RewriteRule (.*\.html) docs.php?$1 [S=1] # Skip past the "else" stanza.

Instead, we give

RewriteRule (.*\.gif) images.php?$1
RewriteRule (.*\.html) docs.php?$1
# Skip past the "else" stanza.
RewriteRule .? - [S=1]

I would present this form this way:
"A skip=N rule is added at the end of the then-clause, where N is the number of
rules in the else-clause:"

Finally, it would be nice to start by explaining the argument (N).

--
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 [at] httpd
For additional commands, e-mail: docs-help [at] httpd

Apache docs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.