summaryrefslogtreecommitdiffstats
path: root/docs/manual/rewrite
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2013-05-11 18:11:21 +0200
committerRich Bowen <rbowen@apache.org>2013-05-11 18:11:21 +0200
commit1203b74fc36bc37afb7552b2c886919964d823db (patch)
tree7d1082f4502ff961fabd04836eca72e889b3ef5b /docs/manual/rewrite
parentThe use of "might" can leave some confusion as to whether it *is*. (diff)
downloadapache2-1203b74fc36bc37afb7552b2c886919964d823db.tar.xz
apache2-1203b74fc36bc37afb7552b2c886919964d823db.zip
Rebuild
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/rewrite')
-rw-r--r--docs/manual/rewrite/rewritemap.html.en13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/manual/rewrite/rewritemap.html.en b/docs/manual/rewrite/rewritemap.html.en
index 9565b6ad77..44d1589cfb 100644
--- a/docs/manual/rewrite/rewritemap.html.en
+++ b/docs/manual/rewrite/rewritemap.html.en
@@ -87,7 +87,7 @@ configuration.</div>
substituted by <em>DefaultValue</em> or by the empty string
if no <em>DefaultValue</em> was specified.</p>
- <p>For example, you might define a
+ <p>For example, you can define a
<code class="directive">RewriteMap</code> as:</p>
<pre class="prettyprint lang-config">RewriteMap examplemap txt:/path/to/file/map.txt</pre>
@@ -171,20 +171,19 @@ RewriteRule (.*?[A-Z]+.*) ${lc:$1} [R]
per line. Optionally, a line may be contain a comment, starting with
a '#' character.</p>
- <p>For example, the following might be valid entries in a map
- file.</p>
+ <p>A valid text rewrite map file will have the following syntax:</p>
- <p class="indent">
+ <div class="example"><p><code>
# Comment line<br />
<strong><em>MatchingKey</em> <em>SubstValue</em></strong><br />
<strong><em>MatchingKey</em> <em>SubstValue</em></strong> # comment<br />
- </p>
+ </code></p></div>
<p>When the RewriteMap is invoked the argument is looked for in the
first argument of a line, and, if found, the substitution value is
returned.</p>
- <p>For example, we might use a mapfile to translate product names to
+ <p>For example, we can use a mapfile to translate product names to
product IDs for easier-to-remember URLs, using the following
recipe:</p>
<p><strong>Product to ID configuration</strong></p>
@@ -246,7 +245,7 @@ telephone 328
One of these values will be chosen at random if the key is
matched.</p>
- <p>For example, you might use the following map
+ <p>For example, you can use the following map
file and directives to provide a random load balancing between
several back-end servers, via a reverse-proxy. Images are sent
to one of the servers in the 'static' pool, while everything