From: Daniel Gruno
Date: Tue, 1 May 2012 09:11:41 +0000 (+0000)
Subject: Fix last example so it's actually a valid expression and change RedirectMatch to...
X-Git-Tag: 2.5.0-alpha~6932
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d722850003feb40b4239961b735afca177498f3;p=thirdparty%2Fapache%2Fhttpd.git
Fix last example so it's actually a valid expression and change RedirectMatch to Redirect for optimal performance
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332581 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/avoid.html.en b/docs/manual/rewrite/avoid.html.en
index c4adf8afdef..303b0825161 100644
--- a/docs/manual/rewrite/avoid.html.en
+++ b/docs/manual/rewrite/avoid.html.en
@@ -209,8 +209,8 @@ hostname, such as www.example.com instead of
example.com. This can be done using the <If> directive, as shown here:
-<If "$req{Host} != 'www.example.com'">
- RedirectMatch (.*) http://www.example.com$1
+<If "req('Host') != 'www.example.com'">
+ Redirect / http://www.example.com/
</If>
diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml
index 89833228ad8..5a9b198daad 100644
--- a/docs/manual/rewrite/avoid.xml
+++ b/docs/manual/rewrite/avoid.xml
@@ -217,8 +217,8 @@ hostname, such as www.example.com instead of
module="core" type="section">If directive, as shown here:
-<If "$req{Host} != 'www.example.com'">
- RedirectMatch (.*) http://www.example.com$1
+<If "req('Host') != 'www.example.com'">
+ Redirect / http://www.example.com/
</If>