]> granicus.if.org Git - apache/commitdiff
Fix last example so it's actually a valid expression and change RedirectMatch to...
authorDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 09:11:41 +0000 (09:11 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 09:11:41 +0000 (09:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332581 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/avoid.html.en
docs/manual/rewrite/avoid.xml

index c4adf8afdef8c8391983fea2ed9b83d8c9926d39..303b08251614664263799c590f98f9d5e2dc56d1 100644 (file)
@@ -209,8 +209,8 @@ hostname, such as <code>www.example.com</code> instead of
 <code>example.com</code>. This can be done using the <code class="directive"><a href="../mod/core.html#if">&lt;If&gt;</a></code> directive, as shown here:</p>
 
 <pre class="prettyprint lang-config">
-&lt;If "$req{Host} != 'www.example.com'"&gt;
-    RedirectMatch (.*) http://www.example.com$1
+&lt;If "req('Host') != 'www.example.com'"&gt;
+    Redirect / http://www.example.com/
 &lt;/If&gt;
 </pre>
 
index 89833228ad8b4ea15f0a65da029edbafed0a7dc5..5a9b198daadab40006cf4f841662351a8abb803f 100644 (file)
@@ -217,8 +217,8 @@ hostname, such as <code>www.example.com</code> instead of
 module="core" type="section">If</directive> directive, as shown here:</p>
 
 <highlight language="config">
-&lt;If "$req{Host} != 'www.example.com'"&gt;
-    RedirectMatch (.*) http://www.example.com$1
+&lt;If "req('Host') != 'www.example.com'"&gt;
+    Redirect / http://www.example.com/
 &lt;/If&gt;
 </highlight>