diff options
author | Rich Bowen <rbowen@apache.org> | 2023-01-12 15:47:21 +0000 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2023-01-12 15:47:21 +0000 |
commit | ab7aa7ccb34d4611d2a87f4cbb2f52f05f55ecc0 (patch) | |
tree | 8513453c3e15fd43b945597a19cad162b79621e8 | |
parent | 5b3f75316ef8fc866286e0d84add4191d7a6c17b (diff) | |
download | httpd-2.2.x.tar.gz |
sync 2.2 version of this doc with 2.4 and trunk version2.2.x
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1906639 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/rewrite/intro.xml | 17 |
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> |