Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: CVS

svn commit: r1332581 - in /httpd/httpd/trunk/docs/manual/rewrite: avoid.html.en avoid.xml

 

 

Apache cvs RSS feed   Index | Next | Previous | View Threaded


humbedooh at apache

May 1, 2012, 2:11 AM

Post #1 of 1 (54 views)
Permalink
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">&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>

Apache cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.