mirror of
https://github.com/apache/httpd.git
synced 2025-07-25 17:01:22 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user