From 5d722850003feb40b4239961b735afca177498f3 Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Tue, 1 May 2012 09:11:41 +0000 Subject: [PATCH] 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 --- docs/manual/rewrite/avoid.html.en | 4 ++-- docs/manual/rewrite/avoid.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/manual/rewrite/avoid.html.en b/docs/manual/rewrite/avoid.html.en index c4adf8afde..303b082516 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 89833228ad..5a9b198daa 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> -- 2.40.0