sync 2.2 version of this doc with 2.4 and trunk version

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1906639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rich Bowen
2023-01-12 15:47:21 +00:00
parent 5b3f75316e
commit ab7aa7ccb3

View File

@ -195,22 +195,23 @@ value.
<dl> <dl>
<dt>1. A full filesystem path to a resource</dt> <dt>1. A full filesystem path to a resource</dt>
<dd> <dd>
<example> <highlight language="config">
RewriteRule ^/games.* /usr/local/games/web RewriteRule "^/games" "/usr/local/games/web/puzzles.html"
</example> </highlight>
<p>This maps a request to an arbitrary location on your filesystem, much <p>This maps a request to an arbitrary location on your filesystem, much
like the <directive module="mod_alias">Alias</directive> directive.</p> like the <directive module="mod_alias">Alias</directive> directive.</p>
</dd> </dd>
<dt>2. A web-path to a resource</dt> <dt>2. A web-path to a resource</dt>
<dd> <dd>
<example> <highlight language="config">
RewriteRule ^/foo/?$ /bar RewriteRule "^/games$" "/puzzles.html"
</example> </highlight>
<p>If <directive module="core">DocumentRoot</directive> is set <p>If <directive module="core">DocumentRoot</directive> is set
to <code>/usr/local/apache2/htdocs</code>, then this directive would to <code>/usr/local/apache2/htdocs</code>, then this directive would
map requests for <code>http://example.com/foo</code> to the map requests for <code>http://example.com/games</code> to the
path <code>/usr/local/apache2/htdocs/bar</code>.</p> path <code>/usr/local/apache2/htdocs/puzzles.html</code>.</p>
</dd> </dd>
<dt>3. An absolute URL</dt> <dt>3. An absolute URL</dt>