]> granicus.if.org Git - apache/commitdiff
add [flags] to syntax
authorEric Covener <covener@apache.org>
Fri, 26 Aug 2016 12:59:20 +0000 (12:59 +0000)
committerEric Covener <covener@apache.org>
Fri, 26 Aug 2016 12:59:20 +0000 (12:59 +0000)
per http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#comment_5728

split list of flags out of the massive CondPattern list.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757838 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index c1cbae7b454d83b631ea7f50fa9e95d76dc9ac87..039d5bec5d6c3beb54e838e5d3aa3bcbdb89fa0c 100644 (file)
@@ -429,7 +429,7 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
 <description>Defines a condition under which rewriting will take place
 </description>
 <syntax> RewriteCond
-      <em>TestString</em> <em>CondPattern</em></syntax>
+      <em>TestString</em> <em>CondPattern</em> [<em>flags</em>]</syntax>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context><context>.htaccess</context></contextlist>
 <override>FileInfo</override>
@@ -957,14 +957,14 @@ RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
 RewriteRule "^/images" "-" [F]
            </highlight>
         </li>
+     </ol>
 
-        <li>You can also set special flags for
-      <em>CondPattern</em> by appending
+     <p>You can also set special flags for <em>CondPattern</em> by appending
         <strong><code>[</code><em>flags</em><code>]</code></strong>
       as the third argument to the <code>RewriteCond</code>
       directive, where <em>flags</em> is a comma-separated list of any of the
-      following flags:
-
+      following flags:</p>
+      
       <ul>
         <li>'<strong><code>nocase|NC</code></strong>'
         (<strong>n</strong>o <strong>c</strong>ase)<br />
@@ -1002,8 +1002,6 @@ RewriteRule ...some special stuff for any of these hosts...
         is well understood.
         </li>
       </ul>
-      </li>
-     </ol>
 
       <p><strong>Example:</strong></p>