summaryrefslogtreecommitdiff
path: root/docs/manual/rewrite/intro.xml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/rewrite/intro.xml')
-rw-r--r--docs/manual/rewrite/intro.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/manual/rewrite/intro.xml b/docs/manual/rewrite/intro.xml
index 9e4879dd84..29abd39c2c 100644
--- a/docs/manual/rewrite/intro.xml
+++ b/docs/manual/rewrite/intro.xml
@@ -195,22 +195,23 @@ value.
<dl>
<dt>1. A full filesystem path to a resource</dt>
<dd>
-<example>
-RewriteRule ^/games.* /usr/local/games/web
-</example>
+<highlight language="config">
+RewriteRule "^/games" "/usr/local/games/web/puzzles.html"
+</highlight>
<p>This maps a request to an arbitrary location on your filesystem, much
like the <directive module="mod_alias">Alias</directive> directive.</p>
</dd>
<dt>2. A web-path to a resource</dt>
<dd>
-<example>
-RewriteRule ^/foo/?$ /bar
-</example>
+<highlight language="config">
+RewriteRule "^/games$" "/puzzles.html"
+</highlight>
<p>If <directive module="core">DocumentRoot</directive> is set
to <code>/usr/local/apache2/htdocs</code>, then this directive would
-map requests for <code>http://example.com/foo</code> to the
-path <code>/usr/local/apache2/htdocs/bar</code>.</p>
+map requests for <code>http://example.com/games</code> to the
+path <code>/usr/local/apache2/htdocs/puzzles.html</code>.</p>
+
</dd>
<dt>3. An absolute URL</dt>