diff options
author | Rich Bowen <rbowen@apache.org> | 2023-01-12 16:45:21 +0100 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2023-01-12 16:45:21 +0100 |
commit | e7ef5a89830955b83b009ed58be8bc09dc4518e5 (patch) | |
tree | dd92d81c3be4ebe9a85c9e61794f84d76c8f5e9a | |
parent | rebuild rewrite docs (diff) | |
download | apache2-e7ef5a89830955b83b009ed58be8bc09dc4518e5.tar.xz apache2-e7ef5a89830955b83b009ed58be8bc09dc4518e5.zip |
Fix the rewriterule syntax, while also removing the directory-vs-file
confusion that I introduced with my earlier change.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906637 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/rewrite/intro.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/manual/rewrite/intro.xml b/docs/manual/rewrite/intro.xml index 4d487f0340..6606d8c181 100644 --- a/docs/manual/rewrite/intro.xml +++ b/docs/manual/rewrite/intro.xml @@ -239,7 +239,7 @@ value. <dt>1. A full filesystem path to a resource</dt> <dd> <highlight language="config"> -RewriteRule "^/games" "/usr/local/games/web" +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> @@ -248,12 +248,12 @@ like the <directive module="mod_alias">Alias</directive> directive.</p> <dt>2. A web-path to a resource</dt> <dd> <highlight language="config"> -RewriteRule "^/foo/?$" "/bar" +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> |