]> granicus.if.org Git - apache/commitdiff
Two minor enhancements to mod_rewrite: First RewriteRule now also supports the
authorRalf S. Engelschall <rse@apache.org>
Fri, 1 Jan 1999 19:50:23 +0000 (19:50 +0000)
committerRalf S. Engelschall <rse@apache.org>
Fri, 1 Jan 1999 19:50:23 +0000 (19:50 +0000)
``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

docs/manual/mod/mod_rewrite.html

index 4a5a8f44d04a8ac6c57a43fe21ebd3704c91bd19..be4508670840900900ac9bd83497d36666e4708f 100644 (file)
@@ -751,6 +751,10 @@ close(TXT)</PRE></TD></TR>
         Converts the looked up key to all upper case.
     <LI><STRONG>tolower</STRONG>:<BR>
         Converts the looked up key to all lower case.
+    <LI><STRONG>escape</STRONG>:<BR>
+        Translates special characters in the looked up key to hex-encodings.
+    <LI><STRONG>unescape</STRONG>:<BR>
+        Translates hex-encodings in the looked up key back to special characters.
     </UL>
 <P>
 <LI><STRONG>External Rewriting Program</STRONG><BR>
@@ -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.
 <P>
+<LI>'<STRONG><CODE>nocase|NC</CODE></STRONG>' (<STRONG>n</STRONG>o <STRONG>c</STRONG>ase)<BR>
+       This makes the <EM>Pattern</EM> case-insensitive, <EM>i.e.</EM>, there is
+       no difference between 'A-Z' and 'a-z' when <EM>Pattern</EM> is matched
+       against the current URL.
+<P>
 <LI>'<STRONG><CODE>qsappend|QSA</CODE></STRONG>' (<STRONG>q</STRONG>uery <STRONG>s</STRONG>tring
     <STRONG>a</STRONG>ppend)<BR> 
     This flag forces the rewriting engine to append a query