httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1332581 - in /httpd/httpd/trunk/docs/manual/rewrite: avoid.html.en avoid.xml
Date Tue, 01 May 2012 09:11:41 GMT
Author: humbedooh
Date: Tue May  1 09:11:41 2012
New Revision: 1332581

URL: http://svn.apache.org/viewvc?rev=1332581&view=rev
Log:
Fix last example so it's actually a valid expression and change RedirectMatch to Redirect
for optimal performance

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en
    httpd/httpd/trunk/docs/manual/rewrite/avoid.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en?rev=1332581&r1=1332580&r2=1332581&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/avoid.html.en Tue May  1 09:11:41 2012
@@ -209,8 +209,8 @@ hostname, such as <code>www.example.com<
 <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>
 

Modified: httpd/httpd/trunk/docs/manual/rewrite/avoid.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/avoid.xml?rev=1332581&r1=1332580&r2=1332581&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/avoid.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/avoid.xml Tue May  1 09:11:41 2012
@@ -217,8 +217,8 @@ hostname, such as <code>www.example.com<
 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>
 



Mime
View raw message