You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2023/01/12 15:45:46 UTC

svn commit: r1906638 - /httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml

Author: rbowen
Date: Thu Jan 12 15:45:46 2023
New Revision: 1906638

URL: http://svn.apache.org/viewvc?rev=1906638&view=rev
Log:
fix rewriterule syntax, and remove dir-vs-file confusion

Modified:
    httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml

Modified: httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml?rev=1906638&r1=1906637&r2=1906638&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml (original)
+++ httpd/httpd/branches/2.4.x/docs/manual/rewrite/intro.xml Thu Jan 12 15:45:46 2023
@@ -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">A
 <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>