From: Rich Bowen The Substitution can itself be one of three things:
-
RewriteRule "^/games" "/usr/local/games/web"
@@ -239,17 +239,18 @@ value.
like the Alias
directive.
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
.
RewriteRule "^/product/view$" "http://site2.example.com/seeproduct.html" [R]@@ -257,6 +258,8 @@ path
/usr/local/apache2/htdocs/bar
.
/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 @@ +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 @@