From: Eric Covener Date: Fri, 26 Aug 2016 12:59:20 +0000 (+0000) Subject: add [flags] to syntax X-Git-Tag: 2.5.0-alpha~1200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b4024296694b8af3bb2f18de8ddd49e2a5b50be;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757838 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index c1cbae7b454..039d5bec5d6 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -429,7 +429,7 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3" Defines a condition under which rewriting will take place RewriteCond - TestString CondPattern + TestString CondPattern [flags] server configvirtual host directory.htaccess FileInfo @@ -957,14 +957,14 @@ RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'" RewriteRule "^/images" "-" [F] + -
  • You can also set special flags for - CondPattern by appending +

    You can also set special flags for CondPattern by appending [flags] as the third argument to the RewriteCond directive, where flags is a comma-separated list of any of the - following flags: - + following flags:

    + -
  • -

    Example: