httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1145575 - /httpd/httpd/branches/2.2.x/docs/manual/rewrite/avoid.xml
Date Tue, 12 Jul 2011 13:09:24 GMT
Author: rbowen
Date: Tue Jul 12 13:09:24 2011
New Revision: 1145575

Remove mention of <If> Directive, as per bug id 51501


Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/avoid.xml
--- httpd/httpd/branches/2.2.x/docs/manual/rewrite/avoid.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/avoid.xml Tue Jul 12 13:09:24 2011
@@ -206,34 +206,5 @@ accomplish.</p>
-<section id="setenv"><title>Environment Variable Testing</title>
-<p><module>mod_rewrite</module> is frequently used to take a particular
-action based on the presence or absense of a particular environment
-variable or request header. This can be done more efficiently using the
-<directive module="core" type="section">If</directive>.</p>
-<p>Consider, for example, the common scenario where
-<directive>RewriteRule</directive> is used to enforce a canonical
-hostname, such as <code></code> instead of
-<code></code>. This can be done using the <directive
-module="core" type="section">If</directive> direct, as shown here:</p>
-&lt;If "$req{Host} = ''"&gt;<br />
-RedirectMatch (.*)$1
-<p>This technique can be used to take actions based on any request
-header, response header, or environment variable, replacing
-<module>mod_rewrite</module> in many common scenarios.</p>
-<p>See especially the <a href="../expr.html">expression evaluation
-documentation</a> for a overview of what types of expressions you can
-use in &lt;If&gt; sections, and in certain other directives.</p>

View raw message