From: Rich Bowen Date: Tue, 21 Sep 2010 13:02:02 +0000 (+0000) Subject: Add descriptions of the new RewriteCond test flags, -L, -h, and the new X-Git-Tag: 2.3.9~472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f69c5bdca0d8f1760461944b14ce951aeccdd147;p=apache Add descriptions of the new RewriteCond test flags, -L, -h, and the new >= and <= syntax, added by wrowe in r997553. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@999383 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 52ecb6e48a..6b599bdf9c 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -442,6 +442,22 @@ RewriteRule ^index\.html$ newsite.html is "" (two quotation marks) this compares TestString to the empty string. +
  • '<=CondPattern' (lexicographically + less than or equal to)
    + Treats the CondPattern as a plain string and + compares it lexicographically to TestString. True + if TestString lexicographically precedes + CondPattern, or is equal to CondPattern + (the two strings are equal, character for character).
  • + +
  • '>=CondPattern' (lexicographically + greater than or equal to)
    + Treats the CondPattern as a plain string and + compares it lexicographically to TestString. True + if TestString lexicographically follows + CondPattern, or is equal to CondPattern + (the two strings are equal, character for character).
  • +
  • '-d' (is directory)
    Treats the TestString as a pathname and tests @@ -452,24 +468,6 @@ RewriteRule ^index\.html$ newsite.html Treats the TestString as a pathname and tests whether or not it exists, and is a regular file.
  • -
  • '-s' (is regular file, with - size)
    - Treats the TestString as a pathname and tests - whether or not it exists, and is a regular file with size greater - than zero.
  • - -
  • '-l' (is symbolic - link)
    - Treats the TestString as a pathname and tests - whether or not it exists, and is a symbolic link.
  • - -
  • '-x' (has executable - permissions)
    - Treats the TestString as a pathname and tests - whether or not it exists, and has executable permissions. - These permissions are determined according to - the underlying OS.
  • -
  • '-F' (is existing file, via subrequest)
    Checks whether or not TestString is a valid file, @@ -478,6 +476,26 @@ RewriteRule ^index\.html$ newsite.html subrequest to do the check, so use it with care - it can impact your server's performance!
  • +
  • '-H' (is symbolic link, bash convention)
    + See -l.
  • + +
  • '-l' (is symbolic + link)
    + Treats the TestString as a pathname and tests + whether or not it exists, and is a symbolic link. May also + use the bash convention of -L or + -h if there's a possibility of confusion + such as when using the -lt test.
  • + +
  • '-L' (is symbolic link, bash convention)
    + See -l.
  • + +
  • '-s' (is regular file, with + size)
    + Treats the TestString as a pathname and tests + whether or not it exists, and is a regular file with size greater + than zero.
  • +
  • '-U' (is existing URL, via subrequest)
    Checks whether or not TestString is a valid URL, @@ -485,6 +503,14 @@ RewriteRule ^index\.html$ newsite.html access controls for that path. This uses an internal subrequest to do the check, so use it with care - it can impact your server's performance!
  • + +
  • '-x' (has executable + permissions)
    + Treats the TestString as a pathname and tests + whether or not it exists, and has executable permissions. + These permissions are determined according to + the underlying OS.
  • +

    Note:

    diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 49edb37912..39d1a51e33 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -596,6 +596,22 @@ RewriteRule ^index\.html$ newsite.html is "" (two quotation marks) this compares TestString to the empty string. +
  • '<=CondPattern' (lexicographically + less than or equal to)
    + Treats the CondPattern as a plain string and + compares it lexicographically to TestString. True + if TestString lexicographically precedes + CondPattern, or is equal to CondPattern + (the two strings are equal, character for character).
  • + +
  • '>=CondPattern' (lexicographically + greater than or equal to)
    + Treats the CondPattern as a plain string and + compares it lexicographically to TestString. True + if TestString lexicographically follows + CondPattern, or is equal to CondPattern + (the two strings are equal, character for character).
  • +
  • '-d' (is directory)
    Treats the TestString as a pathname and tests @@ -606,24 +622,6 @@ RewriteRule ^index\.html$ newsite.html Treats the TestString as a pathname and tests whether or not it exists, and is a regular file.
  • -
  • '-s' (is regular file, with - size)
    - Treats the TestString as a pathname and tests - whether or not it exists, and is a regular file with size greater - than zero.
  • - -
  • '-l' (is symbolic - link)
    - Treats the TestString as a pathname and tests - whether or not it exists, and is a symbolic link.
  • - -
  • '-x' (has executable - permissions)
    - Treats the TestString as a pathname and tests - whether or not it exists, and has executable permissions. - These permissions are determined according to - the underlying OS.
  • -
  • '-F' (is existing file, via subrequest)
    Checks whether or not TestString is a valid file, @@ -632,6 +630,26 @@ RewriteRule ^index\.html$ newsite.html subrequest to do the check, so use it with care - it can impact your server's performance!
  • +
  • '-H' (is symbolic link, bash convention)
    + See -l.
  • + +
  • '-l' (is symbolic + link)
    + Treats the TestString as a pathname and tests + whether or not it exists, and is a symbolic link. May also + use the bash convention of -L or + -h if there's a possibility of confusion + such as when using the -lt test.
  • + +
  • '-L' (is symbolic link, bash convention)
    + See -l.
  • + +
  • '-s' (is regular file, with + size)
    + Treats the TestString as a pathname and tests + whether or not it exists, and is a regular file with size greater + than zero.
  • +
  • '-U' (is existing URL, via subrequest)
    Checks whether or not TestString is a valid URL, @@ -639,6 +657,14 @@ RewriteRule ^index\.html$ newsite.html access controls for that path. This uses an internal subrequest to do the check, so use it with care - it can impact your server's performance!
  • + +
  • '-x' (has executable + permissions)
    + Treats the TestString as a pathname and tests + whether or not it exists, and has executable permissions. + These permissions are determined according to + the underlying OS.
  • + Note: