From: Daniel Gruno Date: Fri, 27 Apr 2012 13:43:19 +0000 (+0000) Subject: Make XML valid and fix up the other titles. X-Git-Tag: 2.5.0-alpha~6970 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d5b466f0051e6624e6f68f421c3dbb062a99fa4;p=apache Make XML valid and fix up the other titles. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331429 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewritemap.html.en b/docs/manual/rewrite/rewritemap.html.en index 43b62b3b03..62bfa02374 100644 --- a/docs/manual/rewrite/rewritemap.html.en +++ b/docs/manual/rewrite/rewritemap.html.en @@ -141,8 +141,8 @@ may be used, and give examples of each.

For example, we might use a mapfile to translate product names to product IDs for easier-to-remember URLs, using the following recipe:

- -
#Product to ID configuration
+

Product to ID configuration

+
 RewriteMap product2id txt:/etc/apache2/productmap.txt
 RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT]
     
@@ -214,8 +214,8 @@ telephone 328 static www1|www2|www3|www4
dynamic www5|www6

- -
#Configuration directives
+

Configuration directives

+
 RewriteMap servers rnd:/path/to/file/map.txt
 
 RewriteRule ^/(.*\.(png|gif|jpg)) http://${servers:static}/$1 [NC,P,L]
@@ -325,7 +325,9 @@ by many requests.
     the int function, and then use that in your RewriteRule:
     

-
#Redirect a URI to an all-lowercase version of itself
+   

Redirect a URI to an all-lowercase version of itself

+
+
 RewriteMap lc int:tolower
 RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
     
@@ -369,7 +371,7 @@ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]

A simple example is shown here which will replace all dashes with underscores in a request URI.

-Rewrite configuration +

Rewrite configuration

 
 RewriteMap d2u prg:/www/bin/dash2under.pl
diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml index 6bd721d45e..79010f8026 100644 --- a/docs/manual/rewrite/rewritemap.xml +++ b/docs/manual/rewrite/rewritemap.xml @@ -133,8 +133,8 @@ may be used, and give examples of each.

For example, we might use a mapfile to translate product names to product IDs for easier-to-remember URLs, using the following recipe:

- - #Product to ID configuration +

Product to ID configuration

+ RewriteMap product2id txt:/etc/apache2/productmap.txt RewriteRule ^/product/(.*) /prods.php?id=${product2id:$1|NOTFOUND} [PT] @@ -203,8 +203,8 @@ telephone 328 static www1|www2|www3|www4
dynamic www5|www6 - - #Configuration directives +

Configuration directives

+ RewriteMap servers rnd:/path/to/file/map.txt RewriteRule ^/(.*\.(png|gif|jpg)) http://${servers:static}/$1 [NC,P,L] @@ -312,7 +312,9 @@ by many requests. the int function, and then use that in your RewriteRule:

- #Redirect a URI to an all-lowercase version of itself +

Redirect a URI to an all-lowercase version of itself

+ + RewriteMap lc int:tolower RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R] @@ -356,7 +358,7 @@ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]

A simple example is shown here which will replace all dashes with underscores in a request URI.

-Rewrite configuration +

Rewrite configuration

RewriteMap d2u prg:/www/bin/dash2under.pl