You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/05/01 11:11:41 UTC
svn commit: r1332581 - in /httpd/httpd/trunk/docs/manual/rewrite:
avoid.html.en avoid.xml
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"><If></a></code> directive, as shown here:</p>
<pre class="prettyprint lang-config">
-<If "$req{Host} != 'www.example.com'">
- RedirectMatch (.*) http://www.example.com$1
+<If "req('Host') != 'www.example.com'">
+ Redirect / http://www.example.com/
</If>
</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">
-<If "$req{Host} != 'www.example.com'">
- RedirectMatch (.*) http://www.example.com$1
+<If "req('Host') != 'www.example.com'">
+ Redirect / http://www.example.com/
</If>
</highlight>