From ab7aa7ccb34d4611d2a87f4cbb2f52f05f55ecc0 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Thu, 12 Jan 2023 15:47:21 +0000 Subject: sync 2.2 version of this doc with 2.4 and trunk version git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1906639 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/rewrite/intro.xml | 17 +++++++++-------- 1 file 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.
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.

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.

+
3. An absolute URL
-- cgit v1.2.1