]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
rewritemap doc improvements from trunk
authorRich Bowen <rbowen@apache.org>
Thu, 3 Mar 2016 01:13:25 +0000 (01:13 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 3 Mar 2016 01:13:25 +0000 (01:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1733403 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/rewritemap.xml

index a8f664f41c972f569bf1e3fb89ccb88d6dcd00ed..2c7186645b2f0811afecda42b4c5edbf3e2f2342 100644 (file)
@@ -326,7 +326,7 @@ by many requests.
     <highlight language="config">
 
 RewriteMap lc int:tolower
-RewriteRule "(.*?[A-Z]+.*)" "${lc:$1}" [R]
+RewriteRule "(.*)" "${lc:$1}" [R]
     </highlight>
 
     <note>
@@ -377,12 +377,12 @@ RewriteRule "-" "${d2u:%{REQUEST_URI}}"
 
     <p><strong>dash2under.pl</strong></p>
     <highlight language="perl">
-    #!/usr/bin/perl
-    $| = 1; # Turn off I/O buffering
-    while (&lt;STDIN&gt;) {
-        s/-/_/g; # Replace dashes with underscores
-        print $_;
-    }
+#!/usr/bin/perl
+$| = 1; # Turn off I/O buffering
+while (&lt;STDIN&gt;) {
+    s/-/_/g; # Replace dashes with underscores
+    print $_;
+}
     </highlight>
 
 <note><title>Caution!</title>