From: Rich Bowen Date: Wed, 11 Jan 2023 18:49:05 +0000 (+0000) Subject: rebuild rewrite docs X-Git-Tag: 2.5.0-alpha2-ci-test-only~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9b0166a995fe1fc84a5c8b4b7ccc76407f9d11;p=thirdparty%2Fapache%2Fhttpd.git rebuild rewrite docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906613 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/intro.html.en.utf8 b/docs/manual/rewrite/intro.html.en.utf8 index c365ee52be8..466340073b9 100644 --- a/docs/manual/rewrite/intro.html.en.utf8 +++ b/docs/manual/rewrite/intro.html.en.utf8 @@ -231,7 +231,7 @@ value.

The Substitution can itself be one of three things:

-
A full filesystem path to a resource
+
1. A full filesystem path to a resource
RewriteRule "^/games" "/usr/local/games/web"
@@ -239,17 +239,18 @@ value. like the Alias directive.

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

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.

+
-
An absolute URL
+
3. An absolute URL
RewriteRule "^/product/view$" "http://site2.example.com/seeproduct.html" [R]
@@ -257,6 +258,8 @@ path /usr/local/apache2/htdocs/bar.

+
Note that 1 and 2 have exactly the same syntax. The difference between them is that in the case of 1, the top level of the target path (i.e., /usr/) exists on the filesystem, where as in the case of 2, it does not. (i.e., there's no /bar/ as a root-level directory in the filesystem.)
+

The Substitution can also contain back-references to parts of the incoming URL-path matched by the Pattern. Consider the following:

diff --git a/docs/manual/rewrite/intro.html.fr.utf8 b/docs/manual/rewrite/intro.html.fr.utf8 index 191432d848d..f0f3ca64704 100644 --- a/docs/manual/rewrite/intro.html.fr.utf8 +++ b/docs/manual/rewrite/intro.html.fr.utf8 @@ -26,6 +26,8 @@

Langues Disponibles:  en  |  fr 

+
Cette traduction peut être périmée. Vérifiez la version + anglaise pour les changements récents.

Ce document est un complément à la documentation de référence du module mod_rewrite. Il décrit les concepts de base dont la diff --git a/docs/manual/rewrite/intro.xml.fr b/docs/manual/rewrite/intro.xml.fr index 262ea66344f..d70c6878def 100644 --- a/docs/manual/rewrite/intro.xml.fr +++ b/docs/manual/rewrite/intro.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/rewrite/intro.xml.meta b/docs/manual/rewrite/intro.xml.meta index 5aaac0fc867..ce245b2841c 100644 --- a/docs/manual/rewrite/intro.xml.meta +++ b/docs/manual/rewrite/intro.xml.meta @@ -8,6 +8,6 @@ en - fr + fr