From: Rich Bowen Date: Thu, 12 Jan 2023 15:45:21 +0000 (+0000) Subject: Fix the rewriterule syntax, while also removing the directory-vs-file X-Git-Tag: 2.5.0-alpha2-ci-test-only~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ef5a89830955b83b009ed58be8bc09dc4518e5;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/rewrite/intro.xml b/docs/manual/rewrite/intro.xml index 4d487f03406..6606d8c181a 100644 --- a/docs/manual/rewrite/intro.xml +++ b/docs/manual/rewrite/intro.xml @@ -239,7 +239,7 @@ value.
1. A full filesystem path to a resource
-RewriteRule "^/games" "/usr/local/games/web" +RewriteRule "^/games" "/usr/local/games/web/puzzles.html"

This maps a request to an arbitrary location on your filesystem, much like the Alias directive.

@@ -248,12 +248,12 @@ like the Alias directive.

2. A web-path to a resource
-RewriteRule "^/foo/?$" "/bar" +RewriteRule "^/games$" "/puzzles.html"

If DocumentRoot is set to /usr/local/apache2/htdocs, then this directive would -map requests for http://example.com/foo to the -path /usr/local/apache2/htdocs/bar.

+map requests for http://example.com/games to the +path /usr/local/apache2/htdocs/puzzles.html.