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>
<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>