]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix rewriterule syntax, and remove dir-vs-file confusion
authorRich Bowen <rbowen@apache.org>
Thu, 12 Jan 2023 15:45:46 +0000 (15:45 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 12 Jan 2023 15:45:46 +0000 (15:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1906638 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/intro.xml

index 4d487f03406fdb0024d6bdbe8942c9c76c7bbe5d..6606d8c181a63eadd3fe72724bb369a739c0667e 100644 (file)
@@ -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>