You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2016/08/26 12:59:20 UTC
svn commit: r1757838 - /httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
Author: covener
Date: Fri Aug 26 12:59:20 2016
New Revision: 1757838
URL: http://svn.apache.org/viewvc?rev=1757838&view=rev
Log:
add [flags] to syntax
per http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#comment_5728
split list of flags out of the massive CondPattern list.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=1757838&r1=1757837&r2=1757838&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Fri Aug 26 12:59:20 2016
@@ -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} -str
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 an
is well understood.
</li>
</ul>
- </li>
- </ol>
<p><strong>Example:</strong></p>