From: Daniel Gruno Date: Sat, 1 Sep 2012 07:04:07 +0000 (+0000) Subject: backport r1379311: Add a notion that, for a skip flag to be used, the rewrite rule... X-Git-Tag: 2.4.4~627 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98a3bc0cb37df8818130de72c50863b64a9d2be2;p=apache backport r1379311: Add a notion that, for a skip flag to be used, the rewrite rule has to first match (as per comment #211 on site) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1379703 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index a5a8eefe4c..bdf82e6994 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -628,7 +628,8 @@ URI in request' warnings.
S|skip

The [S] flag is used to skip rules that you don't want to run. The syntax of the skip flag is [S=N], where N signifies -the number of rules to skip. This can be thought of as a goto +the number of rules to skip (provided the +RewriteRule matches). This can be thought of as a goto statement in your rewrite ruleset. In the following example, we only want to run the RewriteRule if the requested URI doesn't correspond with an actual file.