From: Ralf S. Engelschall Date: Fri, 1 Jan 1999 19:50:23 +0000 (+0000) Subject: Two minor enhancements to mod_rewrite: First RewriteRule now also supports the X-Git-Tag: 1.3.4~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5377cc517ad829d9fd3a02f5d018159fbaaf239a;p=apache Two minor enhancements to mod_rewrite: First RewriteRule now also supports the ``nocase|NC'' flag (as RewriteCond already does for ages) to match case insensitive (this especially avoids nasty patterns like `[tT][eE][sS][tT]'). Second two additional internal map functions `escape' and `unescape' were added which can be used to escape/unescape to/from hex-encodings in URLs parts (this is especially useful in combination with map lookups). Submitted by: Magnus Bodin, Ian Kallen Integrated and fixed by: Ralf S. Engelschall git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@82563 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html b/docs/manual/mod/mod_rewrite.html index 4a5a8f44d0..be45086708 100644 --- a/docs/manual/mod/mod_rewrite.html +++ b/docs/manual/mod/mod_rewrite.html @@ -751,6 +751,10 @@ close(TXT) Converts the looked up key to all upper case.
  • tolower:
    Converts the looked up key to all lower case. +
  • escape:
    + Translates special characters in the looked up key to hex-encodings. +
  • unescape:
    + Translates hex-encodings in the looked up key back to special characters.

  • External Rewriting Program
    @@ -1585,6 +1589,11 @@ comma-separated list of the following flags: chance is high that you will run into problems (or even overhead) on sub-requests. In these cases, use this flag.

    +

  • 'nocase|NC' (no case)
    + This makes the Pattern case-insensitive, i.e., there is + no difference between 'A-Z' and 'a-z' when Pattern is matched + against the current URL. +

  • 'qsappend|QSA' (query string append)
    This flag forces the rewriting engine to append a query